I have seen many repository pattern implementations. Specifically of 2 types They expose the generic repository which is queryable and expects a lamba expression from service class to get data from
I am using the UnitOfWork/Service Layer/Repository/EF4 w/POCO design in my MVC app. So far I have this:
We are builing a windows desktop application (not web based) and trying to come up with the best way to implement Repository and UnitOfWork Pattern.
This is my Database Structure : Company CompanyID CompanyName ... Location LocationID LocationName ... Contact
I am using the Entity Framework with POCO\'s generated using the T4 Templates. I have the generated classes in a separate assembly.
I the following dependency chain: Handler() [depends on]--> Repository(string connectionString) So, I have an IHandler which depends on the IRepository which in turn requires a connection string
I have a few repositories that all generally look like this public class DepartmentsRepository { private PersonnelActionFormDataContext db = new PersonnelActionFormDataContext();
I\'m thinking which way to go and can\'t decide which one is better. Maybe you can give me the killer idea :)
I am creating a ASP.NET MVC 3 application using Entity Framework 4. I am using the Repository/Service Pattern and was looking for feedback.
Context: Repository-pattern, WCF, WPF/SL In my Repository of self-tracking Entities i need to explicitly load some related properties in order to correctly process the query. Those are not the include