WPF hinzugefügt
This commit is contained in:
30
DataStoring.EfCore/DPContext.cs
Normal file
30
DataStoring.EfCore/DPContext.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user