Added infrastructure and first database design

This commit is contained in:
2026-07-03 20:26:49 +02:00
parent ffb640049c
commit 077ee48927
292 changed files with 8289 additions and 190 deletions
@@ -0,0 +1,21 @@
using Microsoft.EntityFrameworkCore;
using Nexus.Domain.Entities;
namespace Nexus.Infrastructure.Persistence;
public class NexusDbContext : DbContext
{
public NexusDbContext(DbContextOptions<NexusDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfigurationsFromAssembly(typeof(NexusDbContext).Assembly);
base.OnModelCreating(modelBuilder);
}
public DbSet<Project> Projects => Set<Project>();
}