// using System; using KanSan.Base; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace KanSan.Base.Migrations { [DbContext(typeof(KanSanContext))] [Migration("20200220200339_InitialCommit")] partial class InitialCommit { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.1"); modelBuilder.Entity("KanSan.Base.Models.Baustelle", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("GuidNr") .HasColumnType("TEXT"); b.Property("KundeID") .HasColumnType("INTEGER"); b.Property("Ort") .HasColumnType("TEXT"); b.Property("Projektnummer") .HasColumnType("TEXT"); b.Property("Strasse") .HasColumnType("TEXT"); b.HasKey("ID"); b.HasIndex("KundeID"); b.ToTable("Baustellen"); }); modelBuilder.Entity("KanSan.Base.Models.Kunde", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("GuidNr") .HasColumnType("TEXT"); b.Property("Nachname") .HasColumnType("TEXT"); b.Property("Ort") .HasColumnType("TEXT"); b.Property("PLZ") .HasColumnType("TEXT"); b.Property("Strasse") .HasColumnType("TEXT"); b.Property("Vorname") .HasColumnType("TEXT"); b.HasKey("ID"); b.ToTable("Kunden"); }); modelBuilder.Entity("KanSan.Base.Models.Baustelle", b => { b.HasOne("KanSan.Base.Models.Kunde", "Kunde") .WithMany("Baustellen") .HasForeignKey("KundeID"); }); #pragma warning restore 612, 618 } } }