Reusable db stuff??

This commit is contained in:
Lani Aung
2024-09-15 21:59:05 -06:00
parent 009efc4643
commit c805414cab
28 changed files with 71 additions and 32 deletions
+3
View File
@@ -1,10 +1,13 @@
using fxl.codes.kisekae.blazor.Components;
using fxl.codes.kisekae.data;
using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
builder.Services.AddDbContextFactory<KisekaeContext>(options => { options.UseNpgsql(builder.Configuration.GetConnectionString("kisekae")); });
var app = builder.Build();