we don't use migration because our existing databases are with clients devices and want to create additional tables to their databases after updates for feature extensions...
there was an option like Context.DbEntity.Create();
in ef6
but not getting in ef core
to do so...
I used the below but it also not creating tables which doesn't exist...
try{
var databaseCreator = (Database.GetService<IDatabaseCreator>() as RelationalDatabaseCreator);
databaseCreator.CreateTables();
}
catch (Exception ex)
{
System.Console.WriteLine(ex.Message);
}
Regards- Sanjeeb