Click here to Skip to main content
       

Silverlight / WPF

 
AnswerRe: Getting sqlexception "The multi-part identifier "System.Data.DataRowView" could not be bound." PinmemberMycroft Holmes21-Jan-13 19:36 
GeneralRe: Getting sqlexception "The multi-part identifier "System.Data.DataRowView" could not be bound." PinmemberGeert De Vylder21-Jan-13 21:55 
QuestionBinding to attached property Pinmembersavbace20-Jan-13 22:22 
QuestionRoot element is not valid for navigation PinmemberVuyiswa Maseko19-Jan-13 20:18 
AnswerRe: Root element is not valid for navigation PinmemberRichard Deeming21-Jan-13 2:55 
GeneralRe: Root element is not valid for navigation PinmemberVuyiswa Maseko21-Jan-13 5:49 
QuestionRandom Image with array PinmemberTikha17-Jan-13 12:23 
AnswerRe: Random Image with array PinprotectorPete O'Hanlon17-Jan-13 22:21 
AnswerRe: Random Image with array PinmvpAbhinav S19-Jan-13 3:24 
GeneralRe: Random Image with array PinmemberTikha21-Jan-13 18:09 
GeneralRe: Random Image with array PinmvpDave Kreskowiak21-Jan-13 18:54 
QuestionDispatcherTimer Tick event not fired PinmemberPraveen Raghuvanshi17-Jan-13 5:54 
AnswerRe: DispatcherTimer Tick event not fired PinmemberPaulo Zemek23-Jan-13 7:28 
QuestionWhich way to load entity child collections? PinmemberUCLAdam16-Jan-13 6: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.
QuestionWPF with Web PinmemberRishabh Kumar14-Jan-13 9:42 
AnswerRe: WPF with Web PinmemberAbhishek Pant14-Jan-13 10:17 
AnswerRe: WPF with Web PinmvpAbhinav S16-Jan-13 18:20 
QuestionWPF - Bind IsEnabled To Method On VM PinmemberKevin Marois13-Jan-13 12:06 
AnswerRe: WPF - Bind IsEnabled To Method On VM PinmentorWayne Gaylard14-Jan-13 1:55 
AnswerRe: WPF - Bind IsEnabled To Method On VM PinmemberRichard Deeming14-Jan-13 3:13 
GeneralRe: WPF - Bind IsEnabled To Method On VM PinmemberKevin Marois14-Jan-13 11:40 
GeneralRe: WPF - Bind IsEnabled To Method On VM PinmemberKevin Marois20-Jan-13 9:47 
QuestionWPF - Sync Combox [modified] PinmemberKevin Marois12-Jan-13 16:19 
AnswerRe: WPF - Sync Combox PinmemberMycroft Holmes13-Jan-13 1:50 
GeneralRe: WPF - Sync Combox PinmemberKevin Marois13-Jan-13 18:24 
GeneralRe: WPF - Sync Combox PinmemberMycroft Holmes14-Jan-13 1:11 
GeneralRe: WPF - Sync Combox PinmemberKevin Marois14-Jan-13 6:25 
GeneralRe: WPF - Sync Combox PinmemberSledgeHammer0114-Jan-13 10:34 
GeneralRe: WPF - Sync Combox PinmemberKevin Marois23-Jan-13 18:41 
QuestionStyle From Resource File Not Being Applied PinmemberKevin Marois12-Jan-13 11:20 
AnswerRe: Style From Resource File Not Being Applied PinmvpRichard MacCutchan13-Jan-13 0:44 
GeneralRe: Style From Resource File Not Being Applied PinmemberMycroft Holmes13-Jan-13 1:45 
GeneralRe: Style From Resource File Not Being Applied PinmvpRichard MacCutchan13-Jan-13 2:24 
GeneralRe: Style From Resource File Not Being Applied PinmemberKevin Marois13-Jan-13 11:58 
QuestionRoutedEvent vs AttachedEvent - Syntax difference only? Confused [modified] Pinmemberdevvvy9-Jan-13 21:05 
QuestionHow to play an Audio File After another has Finished in WPF MediaElement PinmemberVuyiswa Maseko4-Jan-13 4:58 
AnswerRe: How to play an Audio File After another has Finished in WPF MediaElement PinprotectorPete O'Hanlon4-Jan-13 5:13 
GeneralRe: How to play an Audio File After another has Finished in WPF MediaElement PinmemberVuyiswa Maseko4-Jan-13 7:08 
QuestionWPF tutorial book website pdf Pinmemberfrazzle-me1-Jan-13 11:44 
AnswerRe: WPF tutorial book website pdf PinmvpRichard MacCutchan1-Jan-13 23:31 
GeneralRe: WPF tutorial book website pdf Pinmemberfrazzle-me2-Jan-13 2:47 
GeneralRe: WPF tutorial book website pdf PinprotectorPete O'Hanlon2-Jan-13 6:48 
GeneralRe: WPF tutorial book website pdf PinmvpRichard MacCutchan2-Jan-13 7:09 
GeneralRe: WPF tutorial book website pdf PinprotectorPete O'Hanlon2-Jan-13 7:10 
AnswerRe: WPF tutorial book website pdf PinmvpAbhinav S2-Jan-13 3:21 
GeneralRe: WPF tutorial book website pdf Pinmemberfrazzle-me2-Jan-13 8:08 
AnswerRe: WPF tutorial book website pdf PinmemberFernando E. Braz2-Jan-13 6:15 
GeneralRe: WPF tutorial book website pdf Pinmemberfrazzle-me2-Jan-13 8:07 
QuestionWPF Tab Styling Question #2 PinmemberKevin Marois1-Jan-13 9:59 
AnswerRe: WPF Tab Styling Question #2 PinprotectorPete O'Hanlon1-Jan-13 10:48 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 26 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid