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