I want to create a multi layered (3 layers) application. EF is the preferred ORM of choice.
Should i use the entities that EF creates directly in my presentation layer, or should i create new custom entities and map the entities? If so, should i create interfaces on top of the custom entitie?
Should i place the .edmx file that EF generates in the data layer?
Thanks
Personally I’d create ViewModels for my presentation layer. You want to keep your EF models abstracted away as best as possible.
You wouldn’t need any interfaces for your ViewModels, they’re just simple POCO/DTOs.