Klassen erweitert
This commit is contained in:
@@ -22,26 +22,23 @@ namespace KanSan.Base.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("BaustelleNummer")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("GuidNr")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int?>("KundeID")
|
||||
b.Property<string>("OrtTeil")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int?>("ProjektID")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Projektnummer")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("KundeID");
|
||||
b.HasIndex("ProjektID");
|
||||
|
||||
b.ToTable("Baustellen");
|
||||
b.ToTable("Baustelle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.Kunde", b =>
|
||||
@@ -73,12 +70,126 @@ namespace KanSan.Base.Migrations
|
||||
b.ToTable("Kunden");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.Projekt", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<Guid>("GuidNr")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int?>("KundeID")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Projektnummer")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("KundeID");
|
||||
|
||||
b.ToTable("Projekte");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.Sewer", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("BaustelleID")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("DN")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<Guid>("GuidNr")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("Material")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("ObjektNummer")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int?>("PunktObenID")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("PunktTypeOben")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("PunktTypeUnten")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("PunktUntenID")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("SewerType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("StrasseName")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("BaustelleID");
|
||||
|
||||
b.HasIndex("PunktObenID");
|
||||
|
||||
b.HasIndex("PunktUntenID");
|
||||
|
||||
b.ToTable("Kanaele");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.SewerPoint", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<Guid>("GuidNr")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Objektnummer")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("SewerPoints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.Baustelle", b =>
|
||||
{
|
||||
b.HasOne("KanSan.Base.Models.Projekt", "Projekt")
|
||||
.WithMany()
|
||||
.HasForeignKey("ProjektID");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.Projekt", b =>
|
||||
{
|
||||
b.HasOne("KanSan.Base.Models.Kunde", "Kunde")
|
||||
.WithMany("Baustellen")
|
||||
.HasForeignKey("KundeID");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.Sewer", b =>
|
||||
{
|
||||
b.HasOne("KanSan.Base.Models.Baustelle", "Baustelle")
|
||||
.WithMany("Kanaele")
|
||||
.HasForeignKey("BaustelleID");
|
||||
|
||||
b.HasOne("KanSan.Base.Models.SewerPoint", "PunktOben")
|
||||
.WithMany()
|
||||
.HasForeignKey("PunktObenID");
|
||||
|
||||
b.HasOne("KanSan.Base.Models.SewerPoint", "PunktUnten")
|
||||
.WithMany()
|
||||
.HasForeignKey("PunktUntenID");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user