Where to put Entity Framework Data Model in MVC application?

后端 未结 4 1129
囚心锁ツ
囚心锁ツ 2021-02-02 15:25

Lets consider default ASP.NET MVC application folder structure, so it\'s looks like this:

-App_data
-Content
-Controllers
    HomeController.cs
-Models
    Accou         


        
4条回答
  •  一个人的身影
    2021-02-02 16:21

    For a small project, it should be part of the Model. For a larger product, the repository and the associated model could be in a separate assembly.

提交回复
热议问题