Converting to EF, need to work on TS

This commit is contained in:
Lani Aung
2021-11-19 23:04:15 -07:00
parent 1fd14ebafd
commit 744fc6bc57
43 changed files with 2159 additions and 542 deletions
+3 -3
View File
@@ -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;
}
}
}