Entityframework hinzugefügt
This commit is contained in:
20
SewerStammGen.EntityFramework/SewerStammGenDbContext.cs
Normal file
20
SewerStammGen.EntityFramework/SewerStammGenDbContext.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user