0
我想爲我的MVC項目打造一個堅實的架構。改善Asp.net MVC層架構
目前,項目有:
- 數據庫對象(linqToSql)用於視圖
- 的ViewModels
一個倉庫用於
- reading/editing/deleting database objects - creating ViewModels for page - other general functions
我的初始結構是:
MvcApplication (MvcApplication.Common, MvcApplication.Domain, MvcApplication.Models)
- containing all the views, controllers, repositories
MvcApplication.Domain
- containing linqToSql data file
MvcApplication.Models (MvcApplication.Common, MvcApplication.Domain)
- containing ViewModels
MvcApplication.Common (MvcApplication.Domain)
- containing helper functions, and Enums
你能不能指點我創造了這個項目更好的架構?
我應該刪除哪一層?
應該ViewModels在域的層?