Entityframework hinzugefügt

This commit is contained in:
2023-03-28 09:20:45 +02:00
parent 5b2ed72fe3
commit a1f5b8437c
18 changed files with 910 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
using Microsoft.EntityFrameworkCore;
using Shared.Domain;
namespace SewerStammGen.EntityFramework
{
public class SewerStammGenDbContext : DbContext
{
public SewerStammGenDbContext(DbContextOptions options) : base(options) { }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
public DbSet<Schacht>? Schaechte { get; set; }
public DbSet<Projekt>? Projekte { get; set; }
public DbSet<Kanal>? Kanaele { get; set; }
public DbSet<Auftraggeber>? Auftraggebers { get; set; }
}
}