I'm creating a new web application based on ASP.NET Web API and EF6.
ProjectName
-ProjectName.Data (All entity framework stuff)
-ProjectName.Service (All business logic)
-ProjectName.Web (ASP.NET Web API All front end logic)
I've read tons of information the repository pattern & UoW , and the vast array of options on its advantages or disadvantages with EF. (StackOverflow has 10,081 results for "repository pattern").
We have no plans EVER to change to a different database and with EF6 i've read you can do Unit testing without additional abstraction.
I'm tending toward NOT using repository or UoW and instead talking directly to DbContext from the service layer.
Can anyone provide examples that implement EF6 without a repository, with a service layer ?
Even better a sample project or github project using this in real life ?
Edit:
Similar Questions:
Implementing Repository pattern and doing Tests
Generic Repository With EF 4.1 what is the point
these are question on the same subject but none of them provide good code example of using EF in a architecture similar to the one i described:
How to manage DbContext lifetime without repository / UoW?
How to implement unit testing using ef6 new features ?