Single assembly projects for small projects only
I never liked the Models folder. I prefer to add separate layers / tiers to separate assemblies. The MVC project template simply makes a layered application in one assembly.
I prefer solutions from several projects:
- Web is a web application with an interface, i.e. Asp.net MVC ( Services and Objects links )
- Services - business-level assembly ( Data and Objects links )
- Objects - POCO classes, interfaces, etc., which are shared (do not refer to any other solution project)
- . EF , .. ( )
, , .
, : EF- ( ..) POCOs, . Objects.
,
, , ( ),
, , EF .
, , POCO .
, POCO ( 1:1) . , , , , POCO. , ToPoco() ( ).