Schächte werden nun hinzugefügt
This commit is contained in:
222
SewerStammGen.EntityFramework/Migrations/20230331095322_SchachtRefProject.Designer.cs
generated
Normal file
222
SewerStammGen.EntityFramework/Migrations/20230331095322_SchachtRefProject.Designer.cs
generated
Normal file
@@ -0,0 +1,222 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
using SewerStammGen.EntityFramework;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SewerStammGen.EntityFramework.Migrations
|
||||
{
|
||||
[DbContext(typeof(SewerStammGenDbContext))]
|
||||
[Migration("20230331095322_SchachtRefProject")]
|
||||
partial class SchachtRefProject
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.4")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Auftraggeber", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Ansprechpartner")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Postleitzahl")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Telefonnummer")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Auftraggebers");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Kanal", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("DN")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("EndSchachtId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("Entwaesserung")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("Haltungslaenge")
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.Property<string>("Material")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Objektbezeichnung")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int?>("ProjektId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("StartSchachtId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("EndSchachtId");
|
||||
|
||||
b.HasIndex("ProjektId");
|
||||
|
||||
b.HasIndex("StartSchachtId");
|
||||
|
||||
b.ToTable("Kanaele");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Projekt", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AuftraggeberId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Erstelldatum")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("ExportType")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("Kodierungssystem")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Projektname")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("AuftraggeberId");
|
||||
|
||||
b.ToTable("Projekte");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Schacht", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<decimal>("DeckelHoehe")
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.Property<int>("Entwaesserung")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("HochWert")
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.Property<string>("Objektbezeichnung")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int?>("ProjektId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("RechtsWert")
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.Property<decimal>("SohlHoehe")
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ProjektId");
|
||||
|
||||
b.ToTable("Schaechte");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Kanal", b =>
|
||||
{
|
||||
b.HasOne("Shared.Domain.Schacht", "EndSchacht")
|
||||
.WithMany()
|
||||
.HasForeignKey("EndSchachtId");
|
||||
|
||||
b.HasOne("Shared.Domain.Projekt", null)
|
||||
.WithMany("Kanaele")
|
||||
.HasForeignKey("ProjektId");
|
||||
|
||||
b.HasOne("Shared.Domain.Schacht", "StartSchacht")
|
||||
.WithMany()
|
||||
.HasForeignKey("StartSchachtId");
|
||||
|
||||
b.Navigation("EndSchacht");
|
||||
|
||||
b.Navigation("StartSchacht");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Projekt", b =>
|
||||
{
|
||||
b.HasOne("Shared.Domain.Auftraggeber", "Auftraggeber")
|
||||
.WithMany()
|
||||
.HasForeignKey("AuftraggeberId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Auftraggeber");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Schacht", b =>
|
||||
{
|
||||
b.HasOne("Shared.Domain.Projekt", "Projekt")
|
||||
.WithMany("Schaechte")
|
||||
.HasForeignKey("ProjektId");
|
||||
|
||||
b.Navigation("Projekt");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Projekt", b =>
|
||||
{
|
||||
b.Navigation("Kanaele");
|
||||
|
||||
b.Navigation("Schaechte");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SewerStammGen.EntityFramework.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchachtRefProject : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
222
SewerStammGen.EntityFramework/Migrations/20230331121831_SchachtRefProjectVirtual.Designer.cs
generated
Normal file
222
SewerStammGen.EntityFramework/Migrations/20230331121831_SchachtRefProjectVirtual.Designer.cs
generated
Normal file
@@ -0,0 +1,222 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
using SewerStammGen.EntityFramework;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SewerStammGen.EntityFramework.Migrations
|
||||
{
|
||||
[DbContext(typeof(SewerStammGenDbContext))]
|
||||
[Migration("20230331121831_SchachtRefProjectVirtual")]
|
||||
partial class SchachtRefProjectVirtual
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.4")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Auftraggeber", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Ansprechpartner")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Postleitzahl")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Telefonnummer")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Auftraggebers");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Kanal", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("DN")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("EndSchachtId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("Entwaesserung")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("Haltungslaenge")
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.Property<string>("Material")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Objektbezeichnung")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int?>("ProjektId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("StartSchachtId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("EndSchachtId");
|
||||
|
||||
b.HasIndex("ProjektId");
|
||||
|
||||
b.HasIndex("StartSchachtId");
|
||||
|
||||
b.ToTable("Kanaele");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Projekt", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AuftraggeberId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Erstelldatum")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("ExportType")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("Kodierungssystem")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Projektname")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("AuftraggeberId");
|
||||
|
||||
b.ToTable("Projekte");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Schacht", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<decimal>("DeckelHoehe")
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.Property<int>("Entwaesserung")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("HochWert")
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.Property<string>("Objektbezeichnung")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int?>("ProjektId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("RechtsWert")
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.Property<decimal>("SohlHoehe")
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ProjektId");
|
||||
|
||||
b.ToTable("Schaechte");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Kanal", b =>
|
||||
{
|
||||
b.HasOne("Shared.Domain.Schacht", "EndSchacht")
|
||||
.WithMany()
|
||||
.HasForeignKey("EndSchachtId");
|
||||
|
||||
b.HasOne("Shared.Domain.Projekt", null)
|
||||
.WithMany("Kanaele")
|
||||
.HasForeignKey("ProjektId");
|
||||
|
||||
b.HasOne("Shared.Domain.Schacht", "StartSchacht")
|
||||
.WithMany()
|
||||
.HasForeignKey("StartSchachtId");
|
||||
|
||||
b.Navigation("EndSchacht");
|
||||
|
||||
b.Navigation("StartSchacht");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Projekt", b =>
|
||||
{
|
||||
b.HasOne("Shared.Domain.Auftraggeber", "Auftraggeber")
|
||||
.WithMany()
|
||||
.HasForeignKey("AuftraggeberId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Auftraggeber");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Schacht", b =>
|
||||
{
|
||||
b.HasOne("Shared.Domain.Projekt", "Projekt")
|
||||
.WithMany("Schaechte")
|
||||
.HasForeignKey("ProjektId");
|
||||
|
||||
b.Navigation("Projekt");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Projekt", b =>
|
||||
{
|
||||
b.Navigation("Kanaele");
|
||||
|
||||
b.Navigation("Schaechte");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SewerStammGen.EntityFramework.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchachtRefProjectVirtual : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -200,9 +200,11 @@ namespace SewerStammGen.EntityFramework.Migrations
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Schacht", b =>
|
||||
{
|
||||
b.HasOne("Shared.Domain.Projekt", null)
|
||||
b.HasOne("Shared.Domain.Projekt", "Projekt")
|
||||
.WithMany("Schaechte")
|
||||
.HasForeignKey("ProjektId");
|
||||
|
||||
b.Navigation("Projekt");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Shared.Domain.Projekt", b =>
|
||||
|
||||
Reference in New Issue
Block a user