简体   繁体   中英

Entity Framework EDMX to Code First

I have an application using EF5 modeling with EDMX and I have much more experience and affinity with Code First. Does anyone have any idea / tutorial on how to migrate from EDMX Code First without changing the database and entity classes?

You can generate Code First classes from existing database. For this you should create new ADO.NET EDM project and choose "Code First from database" option. After that you choose your DB instance and tables for generating DTOs.

More details in https://msdn.microsoft.com/en-us/library/jj200620.aspx

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