Architectural decisions: ASP.NET MVC & Entity Framework

前端 未结 6 773
梦如初夏
梦如初夏 2021-02-06 19:29

I\'m having an architectural decision-problem: We\'re about to build a new application and we\'ve decided we\'ll be using ASP.NET MVC and Entity Framewo

6条回答
  •  [愿得一人]
    2021-02-06 20:02

    First of all you have to decide how would you like to implement the mobile version of your site. Basically you have two options:

    • Create separate views / controllers for your mobile pages. This solution is the most expensive but also the most flexible. (look at mobile support in MVC 4)
    • Create responsive layout for your site ( http://jquerymobile.com/ ) Usually I prefer this option.

    Normally i'm using 3 projects

    • DAL
      • Contains Edmx, T4 templates
    • Service
      • Service classes with CRUD operations (I'm not using repositories, because they are overkill)
      • View Models
    • Web
      • Controllers, Views, ...

提交回复
热议问题