Entity Developer migrations

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Melita
Posts: 1
Joined: Thu 29 Apr 2021 22:16

Entity Developer migrations

Post by Melita » Thu 29 Apr 2021 22:20

Hey
I wanted to know, what the best way is to use migrations with Code first?!?
When I do have an existing EDML file and there I add a new class through the designer.
How will the Migration be handled? - Or do I have to do this by Hand? (Doing it twice, once within the designer and once writing the migrations up and down(s)?)
Hope you can give me some informations or maybe you could provide me a sample Project!?

THX.
Last edited by Melita on Fri 30 Apr 2021 06:13, edited 1 time in total.

Shalex
Site Admin
Posts: 9305
Joined: Thu 14 Aug 2008 12:44

Re: Entity Developer migrations

Post by Shalex » Fri 30 Apr 2021 06:05

Melita wrote: Thu 29 Apr 2021 22:20 When I do have an existing EDML file and there I add a new class through the designer.
How will the Migration be handled?
Please do a right-click on the diagram surface and choose Update Database From Model, follow the wizard steps.

Is that what you need?

Post Reply