Initial COmmit
This commit is contained in:
122
KanSan/Migrations/KanSanContextModelSnapshot.cs
Normal file
122
KanSan/Migrations/KanSanContextModelSnapshot.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using KanSan;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
namespace KanSan.Migrations
|
||||
{
|
||||
[DbContext(typeof(KanSanContext))]
|
||||
partial class KanSanContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.1");
|
||||
|
||||
modelBuilder.Entity("KanSan.Baustelle", b =>
|
||||
{
|
||||
b.Property<Guid>("BaustelleID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid?>("KundenID")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("BaustelleID");
|
||||
|
||||
b.HasIndex("KundenID");
|
||||
|
||||
b.ToTable("Baustellen");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Kunden", b =>
|
||||
{
|
||||
b.Property<Guid>("KundenID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Nachname")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Vorname")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("KundenID");
|
||||
|
||||
b.ToTable("Kunden");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.LeistungsverzeichnisBaustelle", b =>
|
||||
{
|
||||
b.Property<int>("LeistungsverzeichnisBaustelleID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<Guid?>("BaustelleID")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid?>("LeistungsverzeichnissID")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("LeistungsverzeichnisBaustelleID");
|
||||
|
||||
b.HasIndex("BaustelleID");
|
||||
|
||||
b.HasIndex("LeistungsverzeichnissID");
|
||||
|
||||
b.ToTable("leistungsverzeichnisBaustelle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Leistungsverzeichniss", b =>
|
||||
{
|
||||
b.Property<Guid>("LeistungsverzeichnissID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Position")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("PositionBeschreibung")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("PositionEinheit")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<decimal>("PositionEinheitspreis")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("LeistungsverzeichnissID");
|
||||
|
||||
b.ToTable("Leistungsverzeichnisses");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Baustelle", b =>
|
||||
{
|
||||
b.HasOne("KanSan.Kunden", null)
|
||||
.WithMany("Baustellen")
|
||||
.HasForeignKey("KundenID");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.LeistungsverzeichnisBaustelle", b =>
|
||||
{
|
||||
b.HasOne("KanSan.Baustelle", "Baustelle")
|
||||
.WithMany()
|
||||
.HasForeignKey("BaustelleID");
|
||||
|
||||
b.HasOne("KanSan.Leistungsverzeichniss", "Leistungsverzeichniss")
|
||||
.WithMany()
|
||||
.HasForeignKey("LeistungsverzeichnissID");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user