How to migrate to UWP using ef core 1

I don't know how I migrated to EntityFramework.Core (v7.0.0-rc1-final) using EntityFramework.Commands (also v7.0.0-rc1-final). When I add migration (Add-Migration), this creates the migration. Then, when I enter the update database, so the PM console returns:

Database updates should not be used with Universal Windows applications. Instead, call DbContext. Database. Migration () at runtime.

But the Migrate () method is not specified in the Context.Database. Therefore, this command cannot be specified. It seems to me that this is a mistake.

+4
source share
1 answer

RC1 , using Microsoft.Data.Entity;. Migrate() - , , EntityFramework.Sqlite.

        using (var db = new BloggingContext())
        {
            db.Database.Migrate();
        }

. https://docs.efproject.net/en/latest/platforms/uwp/getting-started.html

+6

All Articles