Pino
May 21st, 2010, 12:53 PM
I've spent a good 8 months working with MVC now on 2 projects. However I'm interested to see how everyone else structures there project and how each layer interacts with the other. Below is a sample of what we use,
Project.DAL - Data Access layer, generated by subsonic and some custom repositorys for CRUD functions on the database. Each DAL class also has a partial class which does a conversion from the Data entity to the Model in the class below.
Project.Models - This contains a seperate set of Models that are used to pass data around the application (Including the View) they are not attached to the DAL. Data validation is also here.
Projct.BLL - Business Logic layer, this contains services and essentially the core logic for the application.
Project.Web - The front end of the website, controllers request data from the BLL and display them in the views.
Thoughts? Questions? Opinions?
Project.DAL - Data Access layer, generated by subsonic and some custom repositorys for CRUD functions on the database. Each DAL class also has a partial class which does a conversion from the Data entity to the Model in the class below.
Project.Models - This contains a seperate set of Models that are used to pass data around the application (Including the View) they are not attached to the DAL. Data validation is also here.
Projct.BLL - Business Logic layer, this contains services and essentially the core logic for the application.
Project.Web - The front end of the website, controllers request data from the BLL and display them in the views.
Thoughts? Questions? Opinions?