Expected behavior
enable Cli command for migration dan update database
Desktop (please complete the following information):
windows 10
How to resolve**
remove migration on infrastucture with PMC
remove-migration
add migration assembly to dbcontext
.AddDbContext<BlazorHeroContext>(options=> options.UseSqlServer(configuration.GetConnectionString("DefaultConnection"), b=>b.MigrationsAssembly("Sipd.Server"))) .AddTransient<IDatabaseSeeder, DatabaseSeeder>();
where SIPD is folder name or namespace
change directory to server and running cli
dotnet ef migrations add Initial anc command dotnet ef database update
Describe the bug cannot create migration using CLI, only PMC supported
To Reproduce follow https://codewithmukesh.com/blog/blazor-hero-quick-start-guide/, migrate database using PMC
Expected behavior enable Cli command for migration dan update database
Desktop (please complete the following information):
How to resolve**
remove-migration
.AddDbContext<BlazorHeroContext>(options=> options.UseSqlServer(configuration.GetConnectionString("DefaultConnection"), b=>b.MigrationsAssembly("Sipd.Server"))) .AddTransient<IDatabaseSeeder, DatabaseSeeder>();
where SIPD is folder name or namespacedotnet ef migrations add Initial
anc commanddotnet ef database update
now CLI is running well thanks for this project