Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 735
Jhonathan Avatar asked Sep 15 '25 04:09

Jhonathan


1 Answers

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

like image 103
Sattar Imamov Avatar answered Sep 17 '25 19:09

Sattar Imamov