WPF hinzugefügt

This commit is contained in:
Husky
2021-02-26 18:31:57 +01:00
parent 6761b17f4d
commit 746353e54e
34 changed files with 1261 additions and 37 deletions

View File

@@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore;
using Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataStoring.EfCore
{
public class DPContext : DbContext
{
public DbSet<Auftraggeber> AuftraggeberSet { get; set; }
public DbSet<Bauvorhaben> BaustellenSet { get; set; }
public DbSet<Inspektionsobjekt> SewerObjectsSet { get; set; }
public DbSet<MeasureData> MessungenSet { get; set; }
public DbSet<PressureTest> PruefungSet { get; set; }
public DPContext()
{
//Debugger.Break();
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
optionsBuilder.UseNpgsql("Host = localhost; Database = DP; Username = DP; Password = DP");
}
}
}