ASP.NET and Entity Framework in Layered Architecture - using Entity Framework for ORM only

后端 未结 6 1489
庸人自扰
庸人自扰 2021-01-30 05:19

I have an ASP.NET application that uses a layered architecture e.g. presentation layer, business logic layer, data access layer.

I don\'t want to the business layer to h

6条回答
  •  盖世英雄少女心
    2021-01-30 05:59

    Even if you use generated POCO classes, like the other ops are suggesting, you will still have to maintain a certain dependency to entity framework: the queries that you send to your DbContext / ObjectContext. Therefore you should consider encapsulating the queries in repositories.

提交回复
热议问题