V
V
VanilaSpirit2020-07-23 14:20:22
ASP.NET
VanilaSpirit, 2020-07-23 14:20:22

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

1 answer(s)
V
Vladimir Korotenko, 2020-07-23
@firedragon

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 question

Ask a Question

731 491 924 answers to any question