Syncfusion lizens hinzugefügt
This commit is contained in:
@@ -5,33 +5,36 @@ using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace KanSan.Migrations
|
||||
{
|
||||
[DbContext(typeof(KanSanContext))]
|
||||
[Migration("20200212120350_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
[Migration("20200213193512_InitialCommit")]
|
||||
partial class InitialCommit
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.1");
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
||||
.HasAnnotation("ProductVersion", "3.1.1")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
modelBuilder.Entity("KanSan.Baustelle", b =>
|
||||
{
|
||||
b.Property<Guid>("BaustelleID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid?>("KundenID")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("BaustelleID");
|
||||
|
||||
@@ -44,13 +47,22 @@ namespace KanSan.Migrations
|
||||
{
|
||||
b.Property<Guid>("KundenID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Nachname")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PLZ")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Vorname")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("KundenID");
|
||||
|
||||
@@ -61,13 +73,14 @@ namespace KanSan.Migrations
|
||||
{
|
||||
b.Property<int>("LeistungsverzeichnisBaustelleID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<Guid?>("BaustelleID")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid?>("LeistungsverzeichnissID")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("LeistungsverzeichnisBaustelleID");
|
||||
|
||||
@@ -75,26 +88,26 @@ namespace KanSan.Migrations
|
||||
|
||||
b.HasIndex("LeistungsverzeichnissID");
|
||||
|
||||
b.ToTable("leistungsverzeichnisBaustelle");
|
||||
b.ToTable("LeistungsverzeichnisBaustelle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Leistungsverzeichniss", b =>
|
||||
{
|
||||
b.Property<Guid>("LeistungsverzeichnissID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Position")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PositionBeschreibung")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PositionEinheit")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<decimal>("PositionEinheitspreis")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.HasKey("LeistungsverzeichnissID");
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace KanSan.Migrations
|
||||
{
|
||||
public partial class InitialCreate : Migration
|
||||
public partial class InitialCommit : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
@@ -13,7 +14,10 @@ namespace KanSan.Migrations
|
||||
{
|
||||
KundenID = table.Column<Guid>(nullable: false),
|
||||
Vorname = table.Column<string>(nullable: true),
|
||||
Nachname = table.Column<string>(nullable: true)
|
||||
Nachname = table.Column<string>(nullable: true),
|
||||
Strasse = table.Column<string>(nullable: true),
|
||||
PLZ = table.Column<string>(nullable: true),
|
||||
Ort = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
@@ -56,25 +60,25 @@ namespace KanSan.Migrations
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "leistungsverzeichnisBaustelle",
|
||||
name: "LeistungsverzeichnisBaustelle",
|
||||
columns: table => new
|
||||
{
|
||||
LeistungsverzeichnisBaustelleID = table.Column<int>(nullable: false)
|
||||
.Annotation("Sqlite:Autoincrement", true),
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
BaustelleID = table.Column<Guid>(nullable: true),
|
||||
LeistungsverzeichnissID = table.Column<Guid>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_leistungsverzeichnisBaustelle", x => x.LeistungsverzeichnisBaustelleID);
|
||||
table.PrimaryKey("PK_LeistungsverzeichnisBaustelle", x => x.LeistungsverzeichnisBaustelleID);
|
||||
table.ForeignKey(
|
||||
name: "FK_leistungsverzeichnisBaustelle_Baustellen_BaustelleID",
|
||||
name: "FK_LeistungsverzeichnisBaustelle_Baustellen_BaustelleID",
|
||||
column: x => x.BaustelleID,
|
||||
principalTable: "Baustellen",
|
||||
principalColumn: "BaustelleID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_leistungsverzeichnisBaustelle_Leistungsverzeichnisses_LeistungsverzeichnissID",
|
||||
name: "FK_LeistungsverzeichnisBaustelle_Leistungsverzeichnisses_Leist~",
|
||||
column: x => x.LeistungsverzeichnissID,
|
||||
principalTable: "Leistungsverzeichnisses",
|
||||
principalColumn: "LeistungsverzeichnissID",
|
||||
@@ -87,20 +91,20 @@ namespace KanSan.Migrations
|
||||
column: "KundenID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_leistungsverzeichnisBaustelle_BaustelleID",
|
||||
table: "leistungsverzeichnisBaustelle",
|
||||
name: "IX_LeistungsverzeichnisBaustelle_BaustelleID",
|
||||
table: "LeistungsverzeichnisBaustelle",
|
||||
column: "BaustelleID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_leistungsverzeichnisBaustelle_LeistungsverzeichnissID",
|
||||
table: "leistungsverzeichnisBaustelle",
|
||||
name: "IX_LeistungsverzeichnisBaustelle_LeistungsverzeichnissID",
|
||||
table: "LeistungsverzeichnisBaustelle",
|
||||
column: "LeistungsverzeichnissID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "leistungsverzeichnisBaustelle");
|
||||
name: "LeistungsverzeichnisBaustelle");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Baustellen");
|
||||
@@ -4,6 +4,7 @@ using KanSan;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace KanSan.Migrations
|
||||
{
|
||||
@@ -14,22 +15,24 @@ namespace KanSan.Migrations
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.1");
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
||||
.HasAnnotation("ProductVersion", "3.1.1")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
modelBuilder.Entity("KanSan.Baustelle", b =>
|
||||
{
|
||||
b.Property<Guid>("BaustelleID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid?>("KundenID")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("BaustelleID");
|
||||
|
||||
@@ -42,13 +45,22 @@ namespace KanSan.Migrations
|
||||
{
|
||||
b.Property<Guid>("KundenID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Nachname")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Ort")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PLZ")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Strasse")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Vorname")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("KundenID");
|
||||
|
||||
@@ -59,13 +71,14 @@ namespace KanSan.Migrations
|
||||
{
|
||||
b.Property<int>("LeistungsverzeichnisBaustelleID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<Guid?>("BaustelleID")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid?>("LeistungsverzeichnissID")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("LeistungsverzeichnisBaustelleID");
|
||||
|
||||
@@ -73,26 +86,26 @@ namespace KanSan.Migrations
|
||||
|
||||
b.HasIndex("LeistungsverzeichnissID");
|
||||
|
||||
b.ToTable("leistungsverzeichnisBaustelle");
|
||||
b.ToTable("LeistungsverzeichnisBaustelle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Leistungsverzeichniss", b =>
|
||||
{
|
||||
b.Property<Guid>("LeistungsverzeichnissID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Position")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PositionBeschreibung")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PositionEinheit")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<decimal>("PositionEinheitspreis")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.HasKey("LeistungsverzeichnissID");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user