Revert "Create db and db access. Add json converter for board array. Add tests for json conversion"

This reverts commit 7a532e52e1.
This commit is contained in:
jheaps
2025-08-04 14:20:08 -06:00
parent f4e377c116
commit ae95b15ee6
18 changed files with 132 additions and 461 deletions
-10
View File
@@ -1,8 +1,6 @@
using JoshHeaps.Net.DAL;
using JoshHeaps.Net.Hubs;
using JoshHeaps.Net.Services.Implementations;
using JoshHeaps.Net.Services.Interfaces;
using Microsoft.EntityFrameworkCore;
namespace JoshHeaps.Net;
@@ -29,17 +27,9 @@ public class Program
builder.Services.AddSingleton<IChessService, ChessService>();
builder.Services.AddSingleton<IBackgroundTaskQueue, BackgroundTaskQueue>();
var cs = builder.Configuration.GetConnectionString("ChessDatabase");
builder.Services.AddDbContext<ChessDbContext>(o => o.UseSqlite(cs));
var app = builder.Build();
using (var scope = app.Services.CreateScope())
{
var dbContext = scope.ServiceProvider.GetRequiredService<ChessDbContext>();
dbContext.Database.Migrate();
}
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{