Dal (with Entity Framework) and Model layers into MVC

后端 未结 4 817
半阙折子戏
半阙折子戏 2021-01-15 02:52

First of all , I use EF into Dal layer (separeted project from MVC, same solution). The generated models from EF\'s EDMX file are the actual models from

4条回答
  •  长发绾君心
    2021-01-15 03:06

    I use a view model in my local project and the models in the other project. Then put references to the models im gonna use on the page in my view model. Then reference the view model on my page. Let me know if that sounds like something you want to do and I can edit in some code.

提交回复
热议问题