[ADD] Added sqlite to test project, created di for ef core context. Reworked repositories to use result class.

This commit is contained in:
max
2025-02-01 01:02:27 +01:00
parent e914023c5a
commit 5b4509cac3
17 changed files with 185 additions and 44 deletions

View File

@@ -1,7 +1,9 @@
using DotBased.AspNet.Authority;
using DotBased.AspNet.Authority.EFCore;
using DotBased.Logging;
using DotBased.Logging.MEL;
using DotBased.Logging.Serilog;
using Microsoft.EntityFrameworkCore;
using Serilog;
using TestWebApi;
using ILogger = Serilog.ILogger;
@@ -19,7 +21,10 @@ LogService.AddLogAdapter(new BasedSerilogAdapter(serilogLogger));
builder.Logging.ClearProviders();
builder.Logging.AddDotBasedLoggerProvider(LogService.Options);
builder.Services.AddAuthorityContext(options =>
{
options.UseSqlite("Data Source=dev-dotbased.db");
});
builder.Services.AddAuthority(options =>
{