Page 1 of 1

Entity Developer migrations

Posted: Thu 29 Apr 2021 22:20
by Melita
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.

Re: Entity Developer migrations

Posted: Fri 30 Apr 2021 06:05
by Shalex
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?