-
Notifications
You must be signed in to change notification settings - Fork 183
Understanding MvcSolution.Data
leotsai edited this page Dec 30, 2013
·
1 revision
This project defines the database and the entities. It uses Entity Framework for data access, Code First mode.
Context/MvcSolutionDataContext.cs defines the database.
Folder Entities should contain all the database table definitions. The sub-folder Extensions should contain the extensions to the entities. I plan to write a blog post to describe why we write code in this way.
Folder Dtos contains DTO's that should be returned from service layer to the Web layer.
Folder ModelMappings contains complex entity relationship definitions. Normally, there will be very few special definitions.