I have been looking at the Pro Dinner solution as a reference for a project I am working on and I think its largely suitable.. but I don't quite get the project structure.. from what I can see you would have three objects that would represent a single entity
- Core – poco entities and interfaces for repositories and services
- Data – data access layer, contains repositories implementations, EF5 Code First mappings and the DbContext
- WebUI – all the ViewModels and the Mapper classes which are used to map from Entity to Input (ViewModel) and backwards, mvc controllers, views, images, scripts and some bootstrapping code
so from what I can see, say you had a Person Class.. you would have..
a Person entity in Core, a Person entity in Data and a PersonViewModel in WebUI..
is this correct? am I missing something?
would it be better to have Core contain just a single Person entity?
if anyone has another suggestion please let me know :)
thanks.