AutoMigration : can't ALTER table or column name error
JaySoni 1910
6
Reputation points
I have some issued in auto-migration approach which is given by M.S. Docs (link is below):
https://zcusa.951200.xyz/en-us/ef/core/managing-schemas/migrations/applying?tabs=dotnet-core-cli
( My Code )
var host = CreateHostBuilder(args).Build();
using (var scope = host.Services.CreateScope())
{
var db = scope.ServiceProvider.GetRequiredService<UserInformationContext>();
db.Database.Migrate();
}
host.Run();
Here using this approach I can't alter my table name and column name or even my column datatype.
why am i faced such a problem ?? give me some ideas to solve me these problems.
Sign in to answer