Answer the question
In order to leave comments, you need to log in
Do I need to use Repository pattern and Entity framework together?
On several tests (ASP.NET MVC) that I passed, it was noted that the use of the Repository was a big plus (ef also used it there) and nothing more.
On another test, they said that the repository with ef is a rather controversial option, and, accordingly, it is not needed.
I don't study patterns that much, so I would like to know your opinion - what / how is best and when.
The test ones were about the same - i.e. CRUD and maybe some more functionality.
PS Jun's position. Yes, I know, don't.
Answer the question
In order to leave comments, you need to log in
ORM maps the database to simple objects, the repository already returns complex ones. Everything depends on the tasks.
Personally, I shared :)
https://github.com/vkorotenko/FiasServer
https://github.com/vkorotenko/FiasServer/tree/mast...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question