diff --git a/DatamodelLibrary/DatamodelLibrary.csproj b/DatamodelLibrary/DatamodelLibrary.csproj
index 1e0b4fb..9b9b4a7 100644
--- a/DatamodelLibrary/DatamodelLibrary.csproj
+++ b/DatamodelLibrary/DatamodelLibrary.csproj
@@ -7,21 +7,15 @@
-
-
-
-
+
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
-
-
diff --git a/DatamodelLibrary/Migrations/20210301205458_initial.Designer.cs b/DatamodelLibrary/Migrations/20210301205458_initial.Designer.cs
deleted file mode 100644
index e0dcfeb..0000000
--- a/DatamodelLibrary/Migrations/20210301205458_initial.Designer.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-//
-using System;
-using DatamodelLibrary;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace DatamodelLibrary.Migrations
-{
- [DbContext(typeof(StockContext))]
- [Migration("20210301205458_initial")]
- partial class initial
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "5.0.3");
-
- modelBuilder.Entity("DataDomain.Person", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Born")
- .HasColumnType("TEXT");
-
- b.Property("FirstName")
- .HasColumnType("TEXT");
-
- b.Property("LastName")
- .HasColumnType("TEXT");
-
- b.Property("NickName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Persons");
- });
-
- modelBuilder.Entity("DataDomain.StockMember", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("ActAmount")
- .HasColumnType("INTEGER");
-
- b.Property("ActDate")
- .HasColumnType("TEXT");
-
- b.Property("ActValue")
- .HasColumnType("TEXT");
-
- b.Property("BuyDate")
- .HasColumnType("TEXT");
-
- b.Property("BuyValue")
- .HasColumnType("TEXT");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PostAmount")
- .HasColumnType("INTEGER");
-
- b.Property("SoldDate")
- .HasColumnType("TEXT");
-
- b.Property("SoldValue")
- .HasColumnType("TEXT");
-
- b.Property("StockExtId")
- .HasColumnType("TEXT");
-
- b.Property("StockId")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Stocks");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210301205458_initial.cs b/DatamodelLibrary/Migrations/20210301205458_initial.cs
deleted file mode 100644
index 69e9559..0000000
--- a/DatamodelLibrary/Migrations/20210301205458_initial.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace DatamodelLibrary.Migrations
-{
- public partial class initial : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "Persons",
- columns: table => new
- {
- Id = table.Column(type: "INTEGER", nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- FirstName = table.Column(type: "TEXT", nullable: true),
- LastName = table.Column(type: "TEXT", nullable: true),
- NickName = table.Column(type: "TEXT", nullable: true),
- Born = table.Column(type: "TEXT", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Persons", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "Stocks",
- columns: table => new
- {
- Id = table.Column(type: "INTEGER", nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- StockId = table.Column(type: "TEXT", nullable: true),
- StockExtId = table.Column(type: "TEXT", nullable: true),
- BuyValue = table.Column(type: "TEXT", nullable: false),
- BuyDate = table.Column(type: "TEXT", nullable: false),
- ActValue = table.Column(type: "TEXT", nullable: false),
- ActDate = table.Column(type: "TEXT", nullable: true),
- ActAmount = table.Column(type: "INTEGER", nullable: false),
- SoldValue = table.Column(type: "TEXT", nullable: true),
- SoldDate = table.Column(type: "TEXT", nullable: true),
- Comment = table.Column(type: "TEXT", nullable: true),
- PostAmount = table.Column(type: "INTEGER", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Stocks", x => x.Id);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Persons");
-
- migrationBuilder.DropTable(
- name: "Stocks");
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210306151633_completion_person_address.Designer.cs b/DatamodelLibrary/Migrations/20210306151633_completion_person_address.Designer.cs
deleted file mode 100644
index 5192534..0000000
--- a/DatamodelLibrary/Migrations/20210306151633_completion_person_address.Designer.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-//
-using System;
-using DatamodelLibrary;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace DatamodelLibrary.Migrations
-{
- [DbContext(typeof(StockContext))]
- [Migration("20210306151633_completion_person_address")]
- partial class completion_person_address
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "5.0.3");
-
- modelBuilder.Entity("DataDomain.Address", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Gata")
- .HasColumnType("TEXT");
-
- b.Property("Gata2")
- .HasColumnType("TEXT");
-
- b.Property("Nation")
- .HasColumnType("TEXT");
-
- b.Property("PostNr")
- .HasColumnType("INTEGER");
-
- b.Property("PostOrt")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Addresses");
- });
-
- modelBuilder.Entity("DataDomain.Person", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Born")
- .HasColumnType("TEXT");
-
- b.Property("Comments")
- .HasColumnType("TEXT");
-
- b.Property("FirstName")
- .HasColumnType("TEXT");
-
- b.Property("HomeAddress")
- .HasColumnType("INTEGER");
-
- b.Property("InvoiceAddress")
- .HasColumnType("INTEGER");
-
- b.Property("LastName")
- .HasColumnType("TEXT");
-
- b.Property("NickName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Persons");
- });
-
- modelBuilder.Entity("DataDomain.StockMember", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("ActAmount")
- .HasColumnType("INTEGER");
-
- b.Property("ActDate")
- .HasColumnType("TEXT");
-
- b.Property("ActValue")
- .HasColumnType("TEXT");
-
- b.Property("BuyDate")
- .HasColumnType("TEXT");
-
- b.Property("BuyValue")
- .HasColumnType("TEXT");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PostAmount")
- .HasColumnType("INTEGER");
-
- b.Property("SoldDate")
- .HasColumnType("TEXT");
-
- b.Property("SoldValue")
- .HasColumnType("TEXT");
-
- b.Property("StockExtId")
- .HasColumnType("TEXT");
-
- b.Property("StockId")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Stocks");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210306151633_completion_person_address.cs b/DatamodelLibrary/Migrations/20210306151633_completion_person_address.cs
deleted file mode 100644
index 2078fb3..0000000
--- a/DatamodelLibrary/Migrations/20210306151633_completion_person_address.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace DatamodelLibrary.Migrations
-{
- public partial class completion_person_address : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn(
- name: "Comments",
- table: "Persons",
- type: "TEXT",
- nullable: true);
-
- migrationBuilder.AddColumn(
- name: "HomeAddress",
- table: "Persons",
- type: "INTEGER",
- nullable: false,
- defaultValue: 0);
-
- migrationBuilder.AddColumn(
- name: "InvoiceAddress",
- table: "Persons",
- type: "INTEGER",
- nullable: false,
- defaultValue: 0);
-
- migrationBuilder.CreateTable(
- name: "Addresses",
- columns: table => new
- {
- Id = table.Column(type: "INTEGER", nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- Gata = table.Column(type: "TEXT", nullable: true),
- Gata2 = table.Column(type: "TEXT", nullable: true),
- PostNr = table.Column(type: "INTEGER", nullable: false),
- PostOrt = table.Column(type: "TEXT", nullable: true),
- Nation = table.Column(type: "TEXT", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Addresses", x => x.Id);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Addresses");
-
- migrationBuilder.DropColumn(
- name: "Comments",
- table: "Persons");
-
- migrationBuilder.DropColumn(
- name: "HomeAddress",
- table: "Persons");
-
- migrationBuilder.DropColumn(
- name: "InvoiceAddress",
- table: "Persons");
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210307074530_completion_person_stock.Designer.cs b/DatamodelLibrary/Migrations/20210307074530_completion_person_stock.Designer.cs
deleted file mode 100644
index 963374f..0000000
--- a/DatamodelLibrary/Migrations/20210307074530_completion_person_stock.Designer.cs
+++ /dev/null
@@ -1,145 +0,0 @@
-//
-using System;
-using DatamodelLibrary;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace DatamodelLibrary.Migrations
-{
- [DbContext(typeof(StockContext))]
- [Migration("20210307074530_completion_person_stock")]
- partial class completion_person_stock
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "5.0.3");
-
- modelBuilder.Entity("DataDomain.Address", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Gata")
- .HasColumnType("TEXT");
-
- b.Property("Gata2")
- .HasColumnType("TEXT");
-
- b.Property("Nation")
- .HasColumnType("TEXT");
-
- b.Property("PostNr")
- .HasColumnType("INTEGER");
-
- b.Property("PostOrt")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Addresses");
- });
-
- modelBuilder.Entity("DataDomain.Person", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Born")
- .HasColumnType("TEXT");
-
- b.Property("Comments")
- .HasColumnType("TEXT");
-
- b.Property("FirstName")
- .HasColumnType("TEXT");
-
- b.Property("HomeAddress")
- .HasColumnType("INTEGER");
-
- b.Property("InvoiceAddress")
- .HasColumnType("INTEGER");
-
- b.Property("LastName")
- .HasColumnType("TEXT");
-
- b.Property("NickName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Persons");
- });
-
- modelBuilder.Entity("DataDomain.PersonStock", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PersonId")
- .HasColumnType("INTEGER");
-
- b.Property("StockId")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("PersonStocks");
- });
-
- modelBuilder.Entity("DataDomain.StockMember", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("ActAmount")
- .HasColumnType("INTEGER");
-
- b.Property("ActDate")
- .HasColumnType("TEXT");
-
- b.Property("ActValue")
- .HasColumnType("TEXT");
-
- b.Property("BuyDate")
- .HasColumnType("TEXT");
-
- b.Property("BuyValue")
- .HasColumnType("TEXT");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PostAmount")
- .HasColumnType("INTEGER");
-
- b.Property("SoldDate")
- .HasColumnType("TEXT");
-
- b.Property("SoldValue")
- .HasColumnType("TEXT");
-
- b.Property("StockExtId")
- .HasColumnType("TEXT");
-
- b.Property("StockId")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Stocks");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210307074530_completion_person_stock.cs b/DatamodelLibrary/Migrations/20210307074530_completion_person_stock.cs
deleted file mode 100644
index a15cc94..0000000
--- a/DatamodelLibrary/Migrations/20210307074530_completion_person_stock.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace DatamodelLibrary.Migrations
-{
- public partial class completion_person_stock : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "PersonStocks",
- columns: table => new
- {
- Id = table.Column(type: "INTEGER", nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- PersonId = table.Column(type: "INTEGER", nullable: false),
- StockId = table.Column(type: "INTEGER", nullable: false),
- Comment = table.Column(type: "TEXT", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_PersonStocks", x => x.Id);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "PersonStocks");
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210307212939_ChangedFormat_Person_Address.Designer.cs b/DatamodelLibrary/Migrations/20210307212939_ChangedFormat_Person_Address.Designer.cs
deleted file mode 100644
index 352329a..0000000
--- a/DatamodelLibrary/Migrations/20210307212939_ChangedFormat_Person_Address.Designer.cs
+++ /dev/null
@@ -1,151 +0,0 @@
-//
-using System;
-using DatamodelLibrary;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace DatamodelLibrary.Migrations
-{
- [DbContext(typeof(StockContext))]
- [Migration("20210307212939_ChangedFormat_Person_Address")]
- partial class ChangedFormat_Person_Address
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "5.0.3");
-
- modelBuilder.Entity("DataDomain.Address", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Destination")
- .HasColumnType("TEXT");
-
- b.Property("Nation")
- .HasColumnType("TEXT");
-
- b.Property("Street")
- .HasColumnType("TEXT");
-
- b.Property("Street2")
- .HasColumnType("TEXT");
-
- b.Property("Zipcode")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("Addresses");
- });
-
- modelBuilder.Entity("DataDomain.Person", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("AccountNo")
- .HasColumnType("INTEGER");
-
- b.Property("Born")
- .HasColumnType("TEXT");
-
- b.Property("ClearingNo")
- .HasColumnType("INTEGER");
-
- b.Property("Comments")
- .HasColumnType("TEXT");
-
- b.Property("FirstName")
- .HasColumnType("TEXT");
-
- b.Property("HomeAddress")
- .HasColumnType("INTEGER");
-
- b.Property("InvoiceAddress")
- .HasColumnType("INTEGER");
-
- b.Property("LastName")
- .HasColumnType("TEXT");
-
- b.Property("NickName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Persons");
- });
-
- modelBuilder.Entity("DataDomain.PersonStock", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PersonId")
- .HasColumnType("INTEGER");
-
- b.Property("StockId")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("PersonStocks");
- });
-
- modelBuilder.Entity("DataDomain.StockMember", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("ActAmount")
- .HasColumnType("INTEGER");
-
- b.Property("ActDate")
- .HasColumnType("TEXT");
-
- b.Property("ActValue")
- .HasColumnType("TEXT");
-
- b.Property("BuyDate")
- .HasColumnType("TEXT");
-
- b.Property("BuyValue")
- .HasColumnType("TEXT");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PostAmount")
- .HasColumnType("INTEGER");
-
- b.Property("SoldDate")
- .HasColumnType("TEXT");
-
- b.Property("SoldValue")
- .HasColumnType("TEXT");
-
- b.Property("StockExtId")
- .HasColumnType("TEXT");
-
- b.Property("StockId")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Stocks");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210307212939_ChangedFormat_Person_Address.cs b/DatamodelLibrary/Migrations/20210307212939_ChangedFormat_Person_Address.cs
deleted file mode 100644
index 949c9ca..0000000
--- a/DatamodelLibrary/Migrations/20210307212939_ChangedFormat_Person_Address.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace DatamodelLibrary.Migrations
-{
- public partial class ChangedFormat_Person_Address : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.RenameColumn(
- name: "PostOrt",
- table: "Addresses",
- newName: "Street2");
-
- migrationBuilder.RenameColumn(
- name: "PostNr",
- table: "Addresses",
- newName: "Zipcode");
-
- migrationBuilder.RenameColumn(
- name: "Gata2",
- table: "Addresses",
- newName: "Street");
-
- migrationBuilder.RenameColumn(
- name: "Gata",
- table: "Addresses",
- newName: "Destination");
-
- migrationBuilder.AddColumn(
- name: "AccountNo",
- table: "Persons",
- type: "INTEGER",
- nullable: false,
- defaultValue: 0L);
-
- migrationBuilder.AddColumn(
- name: "ClearingNo",
- table: "Persons",
- type: "INTEGER",
- nullable: false,
- defaultValue: 0);
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "AccountNo",
- table: "Persons");
-
- migrationBuilder.DropColumn(
- name: "ClearingNo",
- table: "Persons");
-
- migrationBuilder.RenameColumn(
- name: "Zipcode",
- table: "Addresses",
- newName: "PostNr");
-
- migrationBuilder.RenameColumn(
- name: "Street2",
- table: "Addresses",
- newName: "PostOrt");
-
- migrationBuilder.RenameColumn(
- name: "Street",
- table: "Addresses",
- newName: "Gata2");
-
- migrationBuilder.RenameColumn(
- name: "Destination",
- table: "Addresses",
- newName: "Gata");
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210316200448_backupregister.Designer.cs b/DatamodelLibrary/Migrations/20210316200448_backupregister.Designer.cs
deleted file mode 100644
index 277cad6..0000000
--- a/DatamodelLibrary/Migrations/20210316200448_backupregister.Designer.cs
+++ /dev/null
@@ -1,174 +0,0 @@
-//
-using System;
-using DatamodelLibrary;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace DatamodelLibrary.Migrations
-{
- [DbContext(typeof(StockContext))]
- [Migration("20210316200448_backupregister")]
- partial class backupregister
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "5.0.3");
-
- modelBuilder.Entity("DataDomain.Address", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Destination")
- .HasColumnType("TEXT");
-
- b.Property("Nation")
- .HasColumnType("TEXT");
-
- b.Property("Street")
- .HasColumnType("TEXT");
-
- b.Property("Street2")
- .HasColumnType("TEXT");
-
- b.Property("Zipcode")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("Addresses");
- });
-
- modelBuilder.Entity("DataDomain.BackupRegister", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("BackedUp")
- .HasColumnType("TEXT");
-
- b.Property("BackupDbName")
- .HasColumnType("TEXT");
-
- b.Property("BackupPath")
- .HasColumnType("TEXT");
-
- b.Property("DbName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("BackupRegings");
- });
-
- modelBuilder.Entity("DataDomain.Person", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("AccountNo")
- .HasColumnType("INTEGER");
-
- b.Property("Born")
- .HasColumnType("TEXT");
-
- b.Property("ClearingNo")
- .HasColumnType("INTEGER");
-
- b.Property("Comments")
- .HasColumnType("TEXT");
-
- b.Property("FirstName")
- .HasColumnType("TEXT");
-
- b.Property("HomeAddress")
- .HasColumnType("INTEGER");
-
- b.Property("InvoiceAddress")
- .HasColumnType("INTEGER");
-
- b.Property("LastName")
- .HasColumnType("TEXT");
-
- b.Property("NickName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Persons");
- });
-
- modelBuilder.Entity("DataDomain.PersonStock", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PersonId")
- .HasColumnType("INTEGER");
-
- b.Property("StockId")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("PersonStocks");
- });
-
- modelBuilder.Entity("DataDomain.StockMember", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("ActAmount")
- .HasColumnType("INTEGER");
-
- b.Property("ActDate")
- .HasColumnType("TEXT");
-
- b.Property("ActValue")
- .HasColumnType("TEXT");
-
- b.Property("BuyDate")
- .HasColumnType("TEXT");
-
- b.Property("BuyValue")
- .HasColumnType("TEXT");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PostAmount")
- .HasColumnType("INTEGER");
-
- b.Property("SoldDate")
- .HasColumnType("TEXT");
-
- b.Property("SoldValue")
- .HasColumnType("TEXT");
-
- b.Property("StockExtId")
- .HasColumnType("TEXT");
-
- b.Property("StockId")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Stocks");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210316200448_backupregister.cs b/DatamodelLibrary/Migrations/20210316200448_backupregister.cs
deleted file mode 100644
index 4843482..0000000
--- a/DatamodelLibrary/Migrations/20210316200448_backupregister.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace DatamodelLibrary.Migrations
-{
- public partial class backupregister : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "BackupRegings",
- columns: table => new
- {
- Id = table.Column(type: "INTEGER", nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- BackedUp = table.Column(type: "TEXT", nullable: false),
- DbName = table.Column(type: "TEXT", nullable: true),
- BackupDbName = table.Column(type: "TEXT", nullable: true),
- BackupPath = table.Column(type: "TEXT", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_BackupRegings", x => x.Id);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "BackupRegings");
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210512210945_NewStockFields.Designer.cs b/DatamodelLibrary/Migrations/20210512210945_NewStockFields.Designer.cs
deleted file mode 100644
index c37f568..0000000
--- a/DatamodelLibrary/Migrations/20210512210945_NewStockFields.Designer.cs
+++ /dev/null
@@ -1,177 +0,0 @@
-//
-using System;
-using DatamodelLibrary;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace DatamodelLibrary.Migrations
-{
- [DbContext(typeof(StockContext))]
- [Migration("20210512210945_NewStockFields")]
- partial class NewStockFields
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "5.0.6");
-
- modelBuilder.Entity("DataDomain.Address", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Destination")
- .HasColumnType("TEXT");
-
- b.Property("Nation")
- .HasColumnType("TEXT");
-
- b.Property("Street")
- .HasColumnType("TEXT");
-
- b.Property("Street2")
- .HasColumnType("TEXT");
-
- b.Property("Zipcode")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("Addresses");
- });
-
- modelBuilder.Entity("DataDomain.BackupRegister", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("BackedUp")
- .HasColumnType("TEXT");
-
- b.Property("BackupDbName")
- .HasColumnType("TEXT");
-
- b.Property("BackupPath")
- .HasColumnType("TEXT");
-
- b.Property("DbName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("BackupRegings");
- });
-
- modelBuilder.Entity("DataDomain.Person", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("AccountNo")
- .HasColumnType("INTEGER");
-
- b.Property("Born")
- .HasColumnType("TEXT");
-
- b.Property("ClearingNo")
- .HasColumnType("INTEGER");
-
- b.Property("Comments")
- .HasColumnType("TEXT");
-
- b.Property("FirstName")
- .HasColumnType("TEXT");
-
- b.Property("HomeAddress")
- .HasColumnType("INTEGER");
-
- b.Property("InvoiceAddress")
- .HasColumnType("INTEGER");
-
- b.Property("LastName")
- .HasColumnType("TEXT");
-
- b.Property("NickName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Persons");
- });
-
- modelBuilder.Entity("DataDomain.PersonStock", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PersonId")
- .HasColumnType("INTEGER");
-
- b.Property("StockId")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("PersonStocks");
- });
-
- modelBuilder.Entity("DataDomain.StockMember", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("ActAmount")
- .HasColumnType("INTEGER");
-
- b.Property("ActDate")
- .HasColumnType("TEXT");
-
- b.Property("ActValue")
- .HasColumnType("TEXT");
-
- b.Property("BuyDate")
- .HasColumnType("TEXT");
-
- b.Property("BuyValue")
- .HasColumnType("TEXT");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PostAmount")
- .HasColumnType("INTEGER");
-
- b.Property("SoldDate")
- .HasColumnType("TEXT");
-
- b.Property("SoldStockPrice")
- .HasColumnType("TEXT");
-
- b.Property("SoldValue")
- .HasColumnType("TEXT");
-
- b.Property("StockExtId")
- .HasColumnType("TEXT");
-
- b.Property("StockId")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Stocks");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20210512210945_NewStockFields.cs b/DatamodelLibrary/Migrations/20210512210945_NewStockFields.cs
deleted file mode 100644
index 2693677..0000000
--- a/DatamodelLibrary/Migrations/20210512210945_NewStockFields.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace DatamodelLibrary.Migrations
-{
- public partial class NewStockFields : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn(
- name: "SoldStockPrice",
- table: "Stocks",
- type: "TEXT",
- nullable: false,
- defaultValue: 0m);
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "SoldStockPrice",
- table: "Stocks");
- }
- }
-}
diff --git a/DatamodelLibrary/Migrations/20220201161420_StockGroups_table.Designer.cs b/DatamodelLibrary/Migrations/20220201161420_StockGroups_table.Designer.cs
deleted file mode 100644
index 11cf98b..0000000
--- a/DatamodelLibrary/Migrations/20220201161420_StockGroups_table.Designer.cs
+++ /dev/null
@@ -1,194 +0,0 @@
-//
-using System;
-using DatamodelLibrary;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace DatamodelLibrary.Migrations
-{
- [DbContext(typeof(StockContext))]
- [Migration("20220201161420_StockGroups_table")]
- partial class StockGroups_table
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "5.0.6");
-
- modelBuilder.Entity("DataDomain.Address", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Destination")
- .HasColumnType("TEXT");
-
- b.Property("Nation")
- .HasColumnType("TEXT");
-
- b.Property("Street")
- .HasColumnType("TEXT");
-
- b.Property("Street2")
- .HasColumnType("TEXT");
-
- b.Property("Zipcode")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("Addresses");
- });
-
- modelBuilder.Entity("DataDomain.BackupRegister", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("BackedUp")
- .HasColumnType("TEXT");
-
- b.Property("BackupDbName")
- .HasColumnType("TEXT");
-
- b.Property("BackupPath")
- .HasColumnType("TEXT");
-
- b.Property("DbName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("BackupRegings");
- });
-
- modelBuilder.Entity("DataDomain.Person", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("AccountNo")
- .HasColumnType("INTEGER");
-
- b.Property("Born")
- .HasColumnType("TEXT");
-
- b.Property("ClearingNo")
- .HasColumnType("INTEGER");
-
- b.Property("Comments")
- .HasColumnType("TEXT");
-
- b.Property("FirstName")
- .HasColumnType("TEXT");
-
- b.Property("HomeAddress")
- .HasColumnType("INTEGER");
-
- b.Property("InvoiceAddress")
- .HasColumnType("INTEGER");
-
- b.Property("LastName")
- .HasColumnType("TEXT");
-
- b.Property("NickName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("Persons");
- });
-
- modelBuilder.Entity("DataDomain.PersonStock", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PersonId")
- .HasColumnType("INTEGER");
-
- b.Property("StockId")
- .HasColumnType("INTEGER");
-
- b.HasKey("Id");
-
- b.ToTable("PersonStocks");
- });
-
- modelBuilder.Entity("DataDomain.ShareModel", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("GroupName")
- .HasColumnType("TEXT");
-
- b.Property("StockName")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.ToTable("StockGroups");
- });
-
- modelBuilder.Entity("DataDomain.StockMember", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property("ActAmount")
- .HasColumnType("INTEGER");
-
- b.Property("ActDate")
- .HasColumnType("TEXT");
-
- b.Property("ActValue")
- .HasColumnType("TEXT");
-
- b.Property("BuyDate")
- .HasColumnType("TEXT");
-
- b.Property("BuyValue")
- .HasColumnType("TEXT");
-
- b.Property("Comment")
- .HasColumnType("TEXT");
-
- b.Property("PostAmount")
- .HasColumnType("INTEGER");
-
- b.Property