Click here to Skip to main content
15,914,444 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Converting WPF windows application to Web Application. Pin
Hema Bairavan22-Jan-13 0:12
Hema Bairavan22-Jan-13 0:12 
AnswerRe: Converting WPF windows application to Web Application. Pin
Abhinav S22-Jan-13 0:20
Abhinav S22-Jan-13 0:20 
GeneralRe: Converting WPF windows application to Web Application. Pin
Hema Bairavan22-Jan-13 0:30
Hema Bairavan22-Jan-13 0:30 
AnswerRe: Converting WPF windows application to Web Application. Pin
Abhinav S22-Jan-13 2:58
Abhinav S22-Jan-13 2:58 
GeneralRe: Converting WPF windows application to Web Application. Pin
Hema Bairavan22-Jan-13 18:07
Hema Bairavan22-Jan-13 18:07 
GeneralRe: Converting WPF windows application to Web Application. Pin
Paulo Zemek23-Jan-13 6:22
Paulo Zemek23-Jan-13 6:22 
GeneralRe: Converting WPF windows application to Web Application. Pin
Hema Bairavan24-Jan-13 5:30
Hema Bairavan24-Jan-13 5:30 
AnswerRe: Converting WPF windows application to Web Application. Pin
Pete O'Hanlon21-Jan-13 23:27
mvePete O'Hanlon21-Jan-13 23:27 
GeneralRe: Converting WPF windows application to Web Application. Pin
Hema Bairavan22-Jan-13 0:24
Hema Bairavan22-Jan-13 0:24 
AnswerRe: Converting WPF windows application to Web Application. Pin
db7uk26-Jan-13 13:17
db7uk26-Jan-13 13:17 
QuestionGetting sqlexception "The multi-part identifier "System.Data.DataRowView" could not be bound." Pin
Geert De Vylder21-Jan-13 4:51
Geert De Vylder21-Jan-13 4:51 
AnswerRe: Getting sqlexception "The multi-part identifier "System.Data.DataRowView" could not be bound." Pin
Mycroft Holmes21-Jan-13 18:36
professionalMycroft Holmes21-Jan-13 18:36 
GeneralRe: Getting sqlexception "The multi-part identifier "System.Data.DataRowView" could not be bound." Pin
Geert De Vylder21-Jan-13 20:55
Geert De Vylder21-Jan-13 20:55 
QuestionBinding to attached property Pin
savbace20-Jan-13 21:22
savbace20-Jan-13 21:22 
QuestionRoot element is not valid for navigation Pin
Vimalsoft(Pty) Ltd19-Jan-13 19:18
professionalVimalsoft(Pty) Ltd19-Jan-13 19:18 
AnswerRe: Root element is not valid for navigation Pin
Richard Deeming21-Jan-13 1:55
mveRichard Deeming21-Jan-13 1:55 
GeneralRe: Root element is not valid for navigation Pin
Vimalsoft(Pty) Ltd21-Jan-13 4:49
professionalVimalsoft(Pty) Ltd21-Jan-13 4:49 
QuestionRandom Image with array Pin
Tikha17-Jan-13 11:23
Tikha17-Jan-13 11:23 
AnswerRe: Random Image with array Pin
Pete O'Hanlon17-Jan-13 21:21
mvePete O'Hanlon17-Jan-13 21:21 
AnswerRe: Random Image with array Pin
Abhinav S19-Jan-13 2:24
Abhinav S19-Jan-13 2:24 
GeneralRe: Random Image with array Pin
Tikha21-Jan-13 17:09
Tikha21-Jan-13 17:09 
GeneralRe: Random Image with array Pin
Dave Kreskowiak21-Jan-13 17:54
mveDave Kreskowiak21-Jan-13 17:54 
QuestionDispatcherTimer Tick event not fired Pin
Praveen Raghuvanshi17-Jan-13 4:54
professionalPraveen Raghuvanshi17-Jan-13 4:54 
AnswerRe: DispatcherTimer Tick event not fired Pin
Paulo Zemek23-Jan-13 6:28
Paulo Zemek23-Jan-13 6:28 
QuestionWhich way to load entity child collections? Pin
Adam_Dev16-Jan-13 5:11
Adam_Dev16-Jan-13 5:11 
Hi
Hopefully this will be a quick question to answer, but personally I'm not sure which way to go.

Firstly I'm using SL5, MVVM, MEF, EF. I have a person entity - the person entity has a collection of account entities, address entities and order entities.

In my view I am displaying a list of the people on the left with the corresponding lists on the right (accounts, addresses, orders). When the person is changed in the list I obviously want the lists on the right to update.

Obviously it would be inefficient to just include the lists in the domain service query using the .Include() operation as it will return ALL the people with ALL the related list entities. This is where my dilemma is - when I change the person do I either:

Load each of these lists separately, each with their own completed events where I populate the view lists. Which is basically three extra calls to the DB.
OR

2. Call a different GetPeople query in the domain service where I pass in the current person ID and use the .Include() operation to include accounts, address and orders, but filter by the passed in PersonID. (i.e. return this.ObjectContext.People.Include("Accounts").Include("Addresses").Include("Orders").Where(p=>p.ID == PersonID);)

Any help is much appreciated.

Thanks.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.