34 lines
1006 B
C#
34 lines
1006 B
C#
using DaSaSo.Domain.Model;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DaSaSo.EntityFramework
|
|
{
|
|
public class DaSaSoDbContext : DbContext
|
|
{
|
|
public DaSaSoDbContext(DbContextOptions options) : base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
|
|
public DbSet<Client>? Clients { get; set; }
|
|
public DbSet<Project>? Projects { get; set; }
|
|
public DbSet<Buildingsite>? Buildingsites { get; set; }
|
|
public DbSet<SewerObject>? SewerObjects { get; set; }
|
|
public DbSet<SewerDamage>? SewerDamages { get; set; }
|
|
public DbSet<PipeLiner>? PipeLiners { get; set; }
|
|
public DbSet<Impregnation>? Impregnations { get; set; }
|
|
public DbSet<SewerPoint>? SewerPoints { get; set; }
|
|
|
|
}
|
|
}
|