WIP, thinking about converting to EF

This commit is contained in:
Lani Aung
2021-11-18 21:24:20 -07:00
parent fd8858aab3
commit 1fd14ebafd
20 changed files with 1513 additions and 179 deletions
+5 -2
View File
@@ -1,3 +1,4 @@
using Dapper;
using fxl.codes.kisekae.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@@ -34,7 +35,7 @@ namespace fxl.codes.kisekae
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
NpgsqlLogManager.Provider = new ConsoleLoggingProvider();
NpgsqlLogManager.Provider = new ConsoleLoggingProvider(NpgsqlLogLevel.Debug);
NpgsqlLogManager.IsParameterLoggingEnabled = true;
}
else
@@ -55,8 +56,10 @@ namespace fxl.codes.kisekae
{
endpoints.MapControllerRoute(
"default",
"{controller=Home}/{action=Index}/{id?}/{configId?}");
"{controller=Home}/{action=Index}/{id?}");
});
DefaultTypeMap.MatchNamesWithUnderscores = true;
}
}
}