Should I use Entity Framework objects at my view level?

I want to create a multi-level (3 layers) application. EF is the preferred ORM.

Should I use objects created by EF directly at my presentation level, or should I create new custom objects and map objects? If so, should I create interfaces on top of user preferences?

Should I put the .edmx file that generates EF in the data layer?

thank

+3
source share
2 answers

Personally, I created ViewModels for my view level. You want your EF models to be distracted as best as possible.

ViewModels, POCO/DTO .

+3

, .

, . "" .

", " , , . ( , -- --)

, , , - : " , , : " , :)

  • - .
  • , .
  • , .
+2

All Articles