Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I would suggest you to create four projects for that porpouse:</p> <ol> <li>Yourapp.UI (XAML code and ViewModel)</li> <li>Yourapp.Data (Data Access Layer)</li> <li>Yourapp.Entities (Definition of your business objects)</li> <li>Yourapp.Services (Services Layer aka WCF)</li> </ol> <p>Yourapp.Data talks to database and retrieves the desired information.</p> <p>Yourapp.Services maps and transforms that information into your entities (if the logic involved is too complex, perhaps and aditional business layer would be required).</p> <p>From Yourapp.UI just need to add a Service Reference and consume it like a IEnumerable&lt;> and make it reusable so VS won't create additional objects but point to your entities.</p> <p>Yourapp.Entities must be referenced in projects 1,3 and 4. This will make your development easier to test and debugable. Also try to use interfases at the service level so mock testing would be easy to implement.</p> <p>Hope I was clear enough, I'm kind of tired. If any question aroses, add a comment please. Cheers.</p> <p>Ok, I know it was more a theory answer rather than a practical one. May I suggest you to check these tutorials? <a href="http://www.youtube.com/watch?v=g53__vPihFY&amp;feature=relmfu" rel="nofollow">MVVM Tutorials - WCF/WPF</a> They are excellent introduction and happens to use WPF and WCF like you require.</p> <p>A couple of months ago I found them in youtube and believe me, they cleared out a lot of doubts I had at that moment. Since then it's been a lot easier to master. At the beginning WCF can seem more complicated than what it really is.</p> <p>Sorry for not extending my answer but I don't have much time at this moment. Hope it make more sense now.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload