deploy: ebd4cc0010
This commit is contained in:
33
node_modules/shiki/samples/csharp.sample
generated
vendored
33
node_modules/shiki/samples/csharp.sample
generated
vendored
@@ -1,33 +0,0 @@
|
||||
using KCTest.Infrastructure.Database;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace KCTest.API
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var host = CreateHostBuilder(args).Build();
|
||||
|
||||
using (var scope = host.Services.CreateScope())
|
||||
{
|
||||
var db = scope.ServiceProvider.GetRequiredService<KCTestContext>();
|
||||
db.Database.Migrate();
|
||||
}
|
||||
|
||||
host.Run();
|
||||
}
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseStartup<Startup>();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// From https://github.com/Jadhielv/KCTest/blob/master/Backend/src/KCTest.API/Program.cs
|
||||
Reference in New Issue
Block a user