Converting to EF, need to work on TS
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
using Dapper;
|
||||
using fxl.codes.kisekae.Services;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
@@ -24,6 +24,8 @@ namespace fxl.codes.kisekae
|
||||
services.AddControllersWithViews()
|
||||
.AddRazorRuntimeCompilation();
|
||||
|
||||
services.AddDbContextFactory<KisekaeContext>(options => { options.UseNpgsql(Configuration.GetConnectionString("kisekae")); });
|
||||
|
||||
services.AddSingleton<ConfigurationReaderService>();
|
||||
services.AddSingleton<FileParserService>();
|
||||
services.AddScoped<DatabaseService>();
|
||||
@@ -58,8 +60,6 @@ namespace fxl.codes.kisekae
|
||||
"default",
|
||||
"{controller=Home}/{action=Index}/{id?}");
|
||||
});
|
||||
|
||||
DefaultTypeMap.MatchNamesWithUnderscores = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user