Business and data layer in ASP.NET MVC
I am new to ASP.net MVC architecture. I have read in some articles that Model will contain business and data access logic. So does this mean that i have to implement the business and data access layrers in side model folder? And it is obviously not possible to add class libraries (business layer and Data access layer of n tier) in Model folder. SO please let me know how to design business and data layer if i dont want to includ开发者_如何学Pythone my LINQ queries in Controller.
Thanks, Amith
If you have an existing Business Object/Data Layer, just reference those DLLs, you dont need to use the Models folder. MVC uses DTO/ViewData objects a lot, those can go in the Models folders if you dont put them in your dlls.
精彩评论