简体   繁体   中英

Can't seem to find my EF model

This might seem like a stupid question, but I got this ASP.NET MVC 3.0 application which uses Entity Framework 4.3 and SQL Server 2008. I need to add a field to one of the tables in the database. Right now the application works 100% fine. The problem is, I can't seem to find the EDMX file in my solution to resync Entity Framework with the change I made in the database. I haven't used EF 4 yet and i'm wondering if there was a change that doesn't require me to do this anymore? Because I searched my whole hard drive for the EDMX file and it simply isn't there, but the application is working just fine. Any help would be appreciated!

You're probably using Code First, which doesn't use EDMX files.

You should edit the model classes directly and use migrations.

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