简体   繁体   中英

How to separate Model in another project?

I've build a simple MVC Asp.NET application that is connected to a database in sql server, using entity framework I've build the controllers and the views.

Now I'm supposed to separate the Model in another project in the same solution.

I've created the project and connected the new model to the new project.

Now, how to reference that project in the controllers and views project? how to add the dll?

Step 1 : Right Click on 'References' of MVC Project

Step 2 : Select Add References..

Step 3 : From Left Side Menu select Project > Solution

Step 4 : Check Your Project

Step 5 : Click Ok

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM