diff --git a/DataDomain/ShareModel.cs b/DataDomain/ShareModel.cs
new file mode 100644
index 0000000..290b3c8
--- /dev/null
+++ b/DataDomain/ShareModel.cs
@@ -0,0 +1,10 @@
+namespace DataDomain
+{
+ public class ShareModel
+ {
+ public int Id { get; set; }
+ public string GroupName { get; set; }
+ public string StockName { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/DatamodelLibrary/Migrations/20220201161420_StockGroups_table.Designer.cs b/DatamodelLibrary/Migrations/20220201161420_StockGroups_table.Designer.cs
new file mode 100644
index 0000000..11cf98b
--- /dev/null
+++ b/DatamodelLibrary/Migrations/20220201161420_StockGroups_table.Designer.cs
@@ -0,0 +1,194 @@
+//
+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("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/20220201161420_StockGroups_table.cs b/DatamodelLibrary/Migrations/20220201161420_StockGroups_table.cs
new file mode 100644
index 0000000..a3cfccd
--- /dev/null
+++ b/DatamodelLibrary/Migrations/20220201161420_StockGroups_table.cs
@@ -0,0 +1,30 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+namespace DatamodelLibrary.Migrations
+{
+ public partial class StockGroups_table : Migration
+ {
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.CreateTable(
+ name: "StockGroups",
+ columns: table => new
+ {
+ Id = table.Column(type: "INTEGER", nullable: false)
+ .Annotation("Sqlite:Autoincrement", true),
+ GroupName = table.Column(type: "TEXT", nullable: true),
+ StockName = table.Column(type: "TEXT", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_StockGroups", x => x.Id);
+ });
+ }
+
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropTable(
+ name: "StockGroups");
+ }
+ }
+}
diff --git a/DatamodelLibrary/Migrations/StockContextModelSnapshot.cs b/DatamodelLibrary/Migrations/StockContextModelSnapshot.cs
index 598701e..e43a9f1 100644
--- a/DatamodelLibrary/Migrations/StockContextModelSnapshot.cs
+++ b/DatamodelLibrary/Migrations/StockContextModelSnapshot.cs
@@ -123,6 +123,23 @@ namespace DatamodelLibrary.Migrations
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")
diff --git a/DatamodelLibrary/StockContext.cs b/DatamodelLibrary/StockContext.cs
index 6bce6ae..098df71 100644
--- a/DatamodelLibrary/StockContext.cs
+++ b/DatamodelLibrary/StockContext.cs
@@ -15,6 +15,7 @@ namespace DatamodelLibrary
public DbSet Addresses { get; set; }
public DbSet PersonStocks { get; set; }
public DbSet BackupRegings { get; set; }
+ public DbSet StockGroups { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder options)
=> options.UseSqlite("Data Source=Stocks.db");
diff --git a/StockInfoCore/Stocks.db b/StockInfoCore/Stocks.db
index f3f0c83..a9641b4 100644
Binary files a/StockInfoCore/Stocks.db and b/StockInfoCore/Stocks.db differ
diff --git a/StockInfoCore/Stocks.db-shm b/StockInfoCore/Stocks.db-shm
new file mode 100644
index 0000000..cb81175
Binary files /dev/null and b/StockInfoCore/Stocks.db-shm differ
diff --git a/StockInfoCore/Stocks.db-wal b/StockInfoCore/Stocks.db-wal
new file mode 100644
index 0000000..2e7fdb6
Binary files /dev/null and b/StockInfoCore/Stocks.db-wal differ