By alashcraft
via weblogs.asp.net
Published: Jan 18 2010 / 09:16
In my previous post I wrote about how I have implemented the MemberRepository and prepare it for using Dependency injection of an ObjectContext etc. Since the last post I have created a WCF RIA Services DomainService for returning a list of members. I decided to use DTO (Data Transfer Object) in this application even if the application is quite simple. This app will be used as an reference app, and most applications and blog post is about passing DAL types directly from the DomainService. There is nothing wrong with passing DAL types directly to the client if the app is a small app or has few users. I decided to use Unity 1.2 from Microsoft Patterns & Practices as the IoC Container, so this post will also show how I have used the Unity to inject dependencies into the a DomainService.



Add your comment