Unnesting the Blazor and moving the database to root

This commit is contained in:
2025-08-30 22:14:46 -04:00
parent 91ab145b85
commit 77856cbe26
31 changed files with 5 additions and 55 deletions
+21
View File
@@ -0,0 +1,21 @@
using DeepDrftWeb.Data;
using DeepDrftWeb.Data.Repositories;
using DeepDrftWeb.Services;
using Microsoft.EntityFrameworkCore;
namespace DeepDrftWeb;
public static class Startup
{
public static void ConfigureDomainServices(WebApplicationBuilder builder)
{
// Add Entity Framework services
builder.Services.AddDbContext<DeepDrftContext>(options =>
options.UseSqlite(builder.Configuration.GetConnectionString("DefaultConnection")));
// Add Track services
builder.Services.AddScoped<TrackRepository>();
builder.Services.AddScoped<TrackService>();
}
}