Jhonathan
Jhonathan

Reputation: 330

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?

Upvotes: 4

Views: 313

Answers (1)

Sattar Imamov
Sattar Imamov

Reputation: 572

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

Upvotes: 2

Related Questions