bricelam / EFCore.VisualStudio

Entity Framework Core Tools for Visual Studio
3 stars 0 forks source link

Migrations UI #3

Closed bricelam closed 6 years ago

bricelam commented 8 years ago

@rowanmiller put together some nice slides on this a while back...

ErikEJ commented 6 years ago

@bricelam Maybe something to consider for EF Core Power Tools - are you able to share the slides (privately, even) ?

bricelam commented 6 years ago

We never found them, but it looked something like this:

image

I seem to remember a few different actions:

rowanmiller commented 6 years ago

@bricelam I found the deck with that the mock up was in - I emailed it to you.

ErikEJ commented 6 years ago

I understand that I can use the following APIs for this: Check for any pending migrations: context.Database.GetPendingMigrations Apply migrations: context.Database.Migrate

But how do I check for pending model changes??

bricelam commented 6 years ago

This code does it.

ErikEJ commented 6 years ago

Excellent - WIP on the EF Core Power Tools side: https://github.com/ErikEJ/SqlCeToolbox/commit/8e9a636b9b020fdcb1dd52a349346b7152c13289

bricelam commented 6 years ago

Closing. We'll use ErikEJ/SqlCeToolbox#649 to track the feature.