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 DeepDrftModels.Entities;
using DeepDrftWeb.Data.Configurations;
using Microsoft.EntityFrameworkCore;
namespace DeepDrftWeb.Data;
public class DeepDrftContext : DbContext
{
public DeepDrftContext(DbContextOptions<DeepDrftContext> options) : base(options)
{
}
public DbSet<TrackEntity> Tracks { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.ApplyConfiguration(new TrackConfiguration());
}
}