C#C
C#2y ago
27 replies
Juliandyce

✅ How to automate update-database

I am bilding a Web server but i have to typ in update-database how can i automate this in Blazor in the Program.cs file.
Im srry i cant be more specific because im new in this kind of stuff.
The tutorial i watch is just outdated the code changed a bit.
Tanks for your time and helping.
In the tutorial https://www.youtube.com/watch?v=JeLnR_ObHd8&t=4624s on 1:16:57 - 1:17:17
and i have the most recent Version of Microsoft Visual Studio if u also have it and it looks like that:

var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseMigrationsEndPoint();
}
else
{
app.UseExceptionHandler("/Error");
app.UseHsts();
}
YouTubeCoding mit Jannick
In diesem Video erstellst du deine erste Blazor Server App vom Scratch bis hin zur Veröffentlichung im IIS auf einem Windows Server.

🔥 Hier geht's zum Contabo Windows Server Angebot:
https://bit.ly/3IOlzOT

SQL Server Express 2019:
https://www.microsoft.com/de-DE/download/details.aspx?id=101064

ASP.NET Core 5.0 Hosting Bundle (erst SQL Server ...
Erstelle und hoste eine Blazor Server App mit ASP.NET Core, VS 2022...
Was this page helpful?