I’m having trouble finding examples of ASP.NET MVC solutions that use EF4 in their repository while adhering to SoC.
Can anyone provide me with references to examples (open source, books, tutorials, articles, etc.) that demonstrate the following?
- ASP.NET MVC 2
- Entity Frameworks 4
- Repository Pattern
- Separation of Concerns (i.e. BL does not explicitly reference anything)
In addition to the core technologies/patterns/principals above, I would really appreciate it if the examples also covered these topics so I could see how they might change with EF4:
- Multi-project solutions
- Dependency Injection (Windsor)
- Unit Tests
- Unit of Work
One example covering the use of context interfaces is on Stack Overflow but I’m seeking something a little more comprehensive if it exists.
Many thanks!
This is a very comprehensive article on Testability and the Entity Framework 4. It also discusses the repository pattern in great detail and even compares differences in different possible implementations of the Repository pattern (including Unit of Work). it also covers depenency injection. it does all this in the context of an MVC 2 app.