When calling any of DbContext.Database.GetPendingMigrations and DbContext. Database.Migrate(), EFCore will throw an exception.
System.InvalidOperationException:“Relational-specific methods can only be used when the context is using a relational database provider.”
When calling any of DbContext.Database.GetPendingMigrations and DbContext. Database.Migrate(), EFCore will throw an exception.
System.InvalidOperationException:“Relational-specific methods can only be used when the context is using a relational database provider.”