How to use an entity structure at the business level and / or data level?

I would like to use the entity framework in my asp.net application.

I can use Linq for entities at any level, but I would like to know where should I put the Entity Framework? (DAL, BAL or direct use in a presentation).

+3
source share
2 answers

EntityFramework should go to the data access layer. To expose it to the presentation level, tightly links the presentation to the database, allowing changes at the database level to flow to the presentation level.

, , - DAL, - ( , DTO, , - , , ).

+7

, Entity Framework -

1-

Entity Framework

2- -

Entity Framework -

0

Source: https://habr.com/ru/post/1728137/


All Articles