Using Microsoft.EntityFrameworkCore.SQLite nuget v2.2.1 on a .Net Standard 2.0 project you reference as the "data model" project. It contains a class called "DataContext" who inherits the dbContext class. Successfully create the initial migration. In my UWP application, in the constructor of app.xaml.cs, I create an instance of my "DataContext" class, assign it to the db variable and call "db.Database.Migrate()". A CS1061 error indicates (translated) "'DatabaseFacade' does not contain a definition for 'Migrate'". Suspecting that a partial class should have been created with this method somewhere during the initial migration, I searched the whole solution for a migrate method and could not find any.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Got it... I did not typed the "using Microsoft.EntityFrameworkCore;" in the app.xaml class. I suggest to accentuate the need for it.
Duplicate of #481
Most helpful comment
Got it... I did not typed the "using Microsoft.EntityFrameworkCore;" in the app.xaml class. I suggest to accentuate the need for it.