Solarion
Honorary Master
- Joined
- Nov 14, 2012
- Messages
- 28,059
- Reaction score
- 17,815
I don't think we need repositories do we? I've heard EF has it's own UnitOfWork so I'm guessing no need for that either. It seems like almost anything added onto EF to handle data is just more abstraction.
I don't like the idea of coupling my UI or even my Service layer straight onto the context so what then is the alternative? Is it possible to Inject the context into a service layer?
An interesting take on building a clean repository.
I don't like the idea of coupling my UI or even my Service layer straight onto the context so what then is the alternative? Is it possible to Inject the context into a service layer?
An interesting take on building a clean repository.
Last edited: