The entity framework course is finished

This commit is contained in:
2020-01-22 23:02:33 +01:00
parent cc8eb0302e
commit 8d11b258bd
6 changed files with 25 additions and 10 deletions

View File

@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using System.IO;
namespace EntityFrameworkBasics
@ -12,9 +13,7 @@ namespace EntityFrameworkBasics
public static IWebHost BuildWebHost(string[] args)
{
return new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
return WebHost.CreateDefaultBuilder()
.UseStartup<Startup>()
.Build();
}