diff --git a/.gitignore b/.gitignore
index f3d1430..b9bd194 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,53 +1,53 @@
-# These are some examples of commonly ignored file patterns.
-# You should customize this list as applicable to your project.
-# Learn more about .gitignore:
-# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
-
-# Node artifact files
-node_modules/
-dist/
-
-# Compiled Java class files
-*.class
-
-# Compiled Python bytecode
-*.py[cod]
-
-# Log files
-*.log
-
-# Package files
-*.jar
-
-# Maven
-target/
-dist/
-
-# JetBrains IDE
-.idea/
-
-# Unit test reports
-TEST*.xml
-
-# Generated by MacOS
-.DS_Store
-
-# Generated by Windows
-Thumbs.db
-
-# Applications
-*.app
-*.exe
-*.war
-
-# Large media files
-*.mp4
-*.tiff
-*.avi
-*.flv
-*.mov
-*.wmv
-
+# These are some examples of commonly ignored file patterns.
+# You should customize this list as applicable to your project.
+# Learn more about .gitignore:
+# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
+
+# Node artifact files
+node_modules/
+dist/
+
+# Compiled Java class files
+*.class
+
+# Compiled Python bytecode
+*.py[cod]
+
+# Log files
+*.log
+
+# Package files
+*.jar
+
+# Maven
+target/
+dist/
+
+# JetBrains IDE
+.idea/
+
+# Unit test reports
+TEST*.xml
+
+# Generated by MacOS
+.DS_Store
+
+# Generated by Windows
+Thumbs.db
+
+# Applications
+*.app
+*.exe
+*.war
+
+# Large media files
+*.mp4
+*.tiff
+*.avi
+*.flv
+*.mov
+*.wmv
+
.vs
obj
bin/
diff --git a/Blink.Backoffice.Services.PcmDb/CompiledEntities/AkwizytorEntityType.cs b/Blink.Backoffice.Services.PcmDb/CompiledEntities/AkwizytorEntityType.cs
deleted file mode 100644
index 7873853..0000000
--- a/Blink.Backoffice.Services.PcmDb/CompiledEntities/AkwizytorEntityType.cs
+++ /dev/null
@@ -1,150 +0,0 @@
-//
-using System;
-using System.Reflection;
-using Blink.Backoffice.Services.PcmDb.Entities;
-using Microsoft.EntityFrameworkCore.ChangeTracking;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal;
-using Microsoft.EntityFrameworkCore.Storage;
-
-#pragma warning disable 219, 612, 618
-#nullable disable
-
-namespace Blink.Backoffice.Services.PcmDb.CompiledEntities
-{
- internal partial class AkwizytorEntityType
- {
- public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType baseEntityType = null)
- {
- var runtimeEntityType = model.AddEntityType(
- "Blink.Backoffice.Services.PcmDb.Entities.Akwizytor",
- typeof(Akwizytor),
- baseEntityType);
-
- var akwId = runtimeEntityType.AddProperty(
- "AkwId",
- typeof(decimal),
- propertyInfo: typeof(Akwizytor).GetProperty("AkwId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Akwizytor).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- valueGenerated: ValueGenerated.OnAdd,
- afterSaveBehavior: PropertySaveBehavior.Throw,
- sentinel: 0m);
- akwId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- keyComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- providerValueComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "numeric(9,0)",
- precision: 9,
- scale: 0));
- akwId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
- akwId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- var nazwisko = runtimeEntityType.AddProperty(
- "Nazwisko",
- typeof(string),
- propertyInfo: typeof(Akwizytor).GetProperty("Nazwisko", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Akwizytor).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- maxLength: 60,
- unicode: false);
- nazwisko.TypeMapping = SqlServerStringTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- keyComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- providerValueComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "varchar(60)",
- size: 60));
- nazwisko.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var opis = runtimeEntityType.AddProperty(
- "Opis",
- typeof(string),
- propertyInfo: typeof(Akwizytor).GetProperty("Opis", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Akwizytor).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- maxLength: 255,
- unicode: false);
- opis.TypeMapping = SqlServerStringTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- keyComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- providerValueComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "varchar(255)",
- size: 255));
- opis.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var prowizja = runtimeEntityType.AddProperty(
- "Prowizja",
- typeof(decimal),
- propertyInfo: typeof(Akwizytor).GetProperty("Prowizja", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Akwizytor).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- sentinel: 0m);
- prowizja.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- keyComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- providerValueComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "decimal(10,4)",
- precision: 10,
- scale: 4));
- prowizja.AddAnnotation("Relational:ColumnType", "decimal(10, 4)");
- prowizja.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var key = runtimeEntityType.AddKey(
- new[] { akwId });
- runtimeEntityType.SetPrimaryKey(key);
- key.AddAnnotation("Relational:Name", "PK_AKWIZYTOR");
-
- return runtimeEntityType;
- }
-
- public static void CreateAnnotations(RuntimeEntityType runtimeEntityType)
- {
- runtimeEntityType.AddAnnotation("Relational:FunctionName", null);
- runtimeEntityType.AddAnnotation("Relational:Schema", null);
- runtimeEntityType.AddAnnotation("Relational:SqlQuery", null);
- runtimeEntityType.AddAnnotation("Relational:TableName", "Akwizytor");
- runtimeEntityType.AddAnnotation("Relational:ViewName", null);
- runtimeEntityType.AddAnnotation("Relational:ViewSchema", null);
-
- Customize(runtimeEntityType);
- }
-
- static partial void Customize(RuntimeEntityType runtimeEntityType);
- }
-}
diff --git a/Blink.Backoffice.Services.PcmDb/CompiledEntities/ArtykulEntityType.cs b/Blink.Backoffice.Services.PcmDb/CompiledEntities/ArtykulEntityType.cs
deleted file mode 100644
index 5d43513..0000000
--- a/Blink.Backoffice.Services.PcmDb/CompiledEntities/ArtykulEntityType.cs
+++ /dev/null
@@ -1,182 +0,0 @@
-//
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-using Blink.Backoffice.Services.PcmDb.Entities;
-using Microsoft.EntityFrameworkCore.ChangeTracking;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal;
-using Microsoft.EntityFrameworkCore.Storage;
-
-#pragma warning disable 219, 612, 618
-#nullable disable
-
-namespace Blink.Backoffice.Services.PcmDb.CompiledEntities
-{
- internal partial class ArtykulEntityType
- {
- public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType baseEntityType = null)
- {
- var runtimeEntityType = model.AddEntityType(
- "Blink.Backoffice.Services.PcmDb.Entities.Artykul",
- typeof(Artykul),
- baseEntityType);
-
- var artId = runtimeEntityType.AddProperty(
- "ArtId",
- typeof(decimal),
- propertyInfo: typeof(Artykul).GetProperty("ArtId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Artykul).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- afterSaveBehavior: PropertySaveBehavior.Throw,
- sentinel: 0m);
- artId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- keyComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- providerValueComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "numeric(9,0)",
- precision: 9,
- scale: 0));
- artId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
- artId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var artNazwa = runtimeEntityType.AddProperty(
- "ArtNazwa",
- typeof(string),
- propertyInfo: typeof(Artykul).GetProperty("ArtNazwa", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Artykul).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- maxLength: 120,
- unicode: false);
- artNazwa.TypeMapping = SqlServerStringTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- keyComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- providerValueComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "varchar(120)",
- size: 120));
- artNazwa.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var centrArtId = runtimeEntityType.AddProperty(
- "CentrArtId",
- typeof(decimal?),
- propertyInfo: typeof(Artykul).GetProperty("CentrArtId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Artykul).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- centrArtId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- keyComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- providerValueComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "numeric(9,0)",
- precision: 9,
- scale: 0));
- centrArtId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
- centrArtId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var glownyTowId = runtimeEntityType.AddProperty(
- "GlownyTowId",
- typeof(decimal?),
- propertyInfo: typeof(Artykul).GetProperty("GlownyTowId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Artykul).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- glownyTowId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- keyComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- providerValueComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "numeric(9,0)",
- precision: 9,
- scale: 0));
- glownyTowId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
- glownyTowId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var key = runtimeEntityType.AddKey(
- new[] { artId });
- runtimeEntityType.SetPrimaryKey(key);
- key.AddAnnotation("Relational:Name", "PK_ARTYKUL");
-
- var index = runtimeEntityType.AddIndex(
- new[] { glownyTowId });
-
- var idx_CentrArtId = runtimeEntityType.AddIndex(
- new[] { centrArtId },
- name: "idx_CentrArtId");
-
- return runtimeEntityType;
- }
-
- public static RuntimeForeignKey CreateForeignKey1(RuntimeEntityType declaringEntityType, RuntimeEntityType principalEntityType)
- {
- var runtimeForeignKey = declaringEntityType.AddForeignKey(new[] { declaringEntityType.FindProperty("GlownyTowId") },
- principalEntityType.FindKey(new[] { principalEntityType.FindProperty("TowId") }),
- principalEntityType);
-
- var glownyTow = declaringEntityType.AddNavigation("GlownyTow",
- runtimeForeignKey,
- onDependent: true,
- typeof(Towar),
- propertyInfo: typeof(Artykul).GetProperty("GlownyTow", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Artykul).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
-
- var artykul = principalEntityType.AddNavigation("Artykul",
- runtimeForeignKey,
- onDependent: false,
- typeof(ICollection),
- propertyInfo: typeof(Towar).GetProperty("Artykul", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Towar).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
-
- runtimeForeignKey.AddAnnotation("Relational:Name", "FK_ARTGLOWNYTOWID");
- return runtimeForeignKey;
- }
-
- public static void CreateAnnotations(RuntimeEntityType runtimeEntityType)
- {
- runtimeEntityType.AddAnnotation("Relational:FunctionName", null);
- runtimeEntityType.AddAnnotation("Relational:Schema", null);
- runtimeEntityType.AddAnnotation("Relational:SqlQuery", null);
- runtimeEntityType.AddAnnotation("Relational:TableName", "Artykul");
- runtimeEntityType.AddAnnotation("Relational:ViewName", null);
- runtimeEntityType.AddAnnotation("Relational:ViewSchema", null);
-
- Customize(runtimeEntityType);
- }
-
- static partial void Customize(RuntimeEntityType runtimeEntityType);
- }
-}
diff --git a/Blink.Backoffice.Services.PcmDb/CompiledEntities/AsortEntityType.cs b/Blink.Backoffice.Services.PcmDb/CompiledEntities/AsortEntityType.cs
deleted file mode 100644
index a286e06..0000000
--- a/Blink.Backoffice.Services.PcmDb/CompiledEntities/AsortEntityType.cs
+++ /dev/null
@@ -1,431 +0,0 @@
-//
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-using Blink.Backoffice.Services.PcmDb.Entities;
-using Microsoft.EntityFrameworkCore.ChangeTracking;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal;
-using Microsoft.EntityFrameworkCore.Storage;
-
-#pragma warning disable 219, 612, 618
-#nullable disable
-
-namespace Blink.Backoffice.Services.PcmDb.CompiledEntities
-{
- internal partial class AsortEntityType
- {
- public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType baseEntityType = null)
- {
- var runtimeEntityType = model.AddEntityType(
- "Blink.Backoffice.Services.PcmDb.Entities.Asort",
- typeof(Asort),
- baseEntityType);
-
- var asId = runtimeEntityType.AddProperty(
- "AsId",
- typeof(decimal),
- propertyInfo: typeof(Asort).GetProperty("AsId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- valueGenerated: ValueGenerated.OnAdd,
- afterSaveBehavior: PropertySaveBehavior.Throw,
- sentinel: 0m);
- asId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- keyComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- providerValueComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "numeric(9,0)",
- precision: 9,
- scale: 0));
- asId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
- asId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- var autoryzacja = runtimeEntityType.AddProperty(
- "Autoryzacja",
- typeof(short?),
- propertyInfo: typeof(Asort).GetProperty("Autoryzacja", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- autoryzacja.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)),
- keyComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)),
- providerValueComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)));
- autoryzacja.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var bezAutoEtykiet = runtimeEntityType.AddProperty(
- "BezAutoEtykiet",
- typeof(short?),
- propertyInfo: typeof(Asort).GetProperty("BezAutoEtykiet", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- bezAutoEtykiet.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)),
- keyComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)),
- providerValueComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)));
- bezAutoEtykiet.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var centrAsId = runtimeEntityType.AddProperty(
- "CentrAsId",
- typeof(decimal?),
- propertyInfo: typeof(Asort).GetProperty("CentrAsId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- centrAsId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- keyComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- providerValueComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "numeric(9,0)",
- precision: 9,
- scale: 0));
- centrAsId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
- centrAsId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var hurtRabat = runtimeEntityType.AddProperty(
- "HurtRabat",
- typeof(decimal),
- propertyInfo: typeof(Asort).GetProperty("HurtRabat", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- sentinel: 0m);
- hurtRabat.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- keyComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- providerValueComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "decimal(10,4)",
- precision: 10,
- scale: 4));
- hurtRabat.AddAnnotation("Relational:ColumnType", "decimal(10, 4)");
- hurtRabat.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var marza = runtimeEntityType.AddProperty(
- "Marza",
- typeof(decimal),
- propertyInfo: typeof(Asort).GetProperty("Marza", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- sentinel: 0m);
- marza.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- keyComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- providerValueComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "decimal(10,4)",
- precision: 10,
- scale: 4));
- marza.AddAnnotation("Relational:ColumnType", "decimal(10, 4)");
- marza.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var nazwa = runtimeEntityType.AddProperty(
- "Nazwa",
- typeof(string),
- propertyInfo: typeof(Asort).GetProperty("Nazwa", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- maxLength: 40,
- unicode: false);
- nazwa.TypeMapping = SqlServerStringTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- keyComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- providerValueComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "varchar(40)",
- size: 40));
- nazwa.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var nocNarzut = runtimeEntityType.AddProperty(
- "NocNarzut",
- typeof(decimal),
- propertyInfo: typeof(Asort).GetProperty("NocNarzut", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- sentinel: 0m);
- nocNarzut.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- keyComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- providerValueComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "decimal(10,4)",
- precision: 10,
- scale: 4));
- nocNarzut.AddAnnotation("Relational:ColumnType", "decimal(10, 4)");
- nocNarzut.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var opcjaMarzy = runtimeEntityType.AddProperty(
- "OpcjaMarzy",
- typeof(short),
- propertyInfo: typeof(Asort).GetProperty("OpcjaMarzy", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- sentinel: (short)0);
- opcjaMarzy.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v),
- keyComparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v),
- providerValueComparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v));
- opcjaMarzy.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var opcjaNarzutu = runtimeEntityType.AddProperty(
- "OpcjaNarzutu",
- typeof(short),
- propertyInfo: typeof(Asort).GetProperty("OpcjaNarzutu", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- sentinel: (short)0);
- opcjaNarzutu.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v),
- keyComparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v),
- providerValueComparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v));
- opcjaNarzutu.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var opcjaRabatu = runtimeEntityType.AddProperty(
- "OpcjaRabatu",
- typeof(short),
- propertyInfo: typeof(Asort).GetProperty("OpcjaRabatu", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- sentinel: (short)0);
- opcjaRabatu.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v),
- keyComparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v),
- providerValueComparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v));
- opcjaRabatu.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var param1 = runtimeEntityType.AddProperty(
- "Param1",
- typeof(decimal?),
- propertyInfo: typeof(Asort).GetProperty("Param1", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- param1.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- keyComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- providerValueComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
- (Nullable v) => v.HasValue ? (Nullable)(decimal)v : default(Nullable)),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "decimal(15,4)",
- precision: 15,
- scale: 4));
- param1.AddAnnotation("Relational:ColumnType", "decimal(15, 4)");
- param1.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var ukrytyNaBonowniku = runtimeEntityType.AddProperty(
- "UkrytyNaBonowniku",
- typeof(short?),
- propertyInfo: typeof(Asort).GetProperty("UkrytyNaBonowniku", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- ukrytyNaBonowniku.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)),
- keyComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)),
- providerValueComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)));
- ukrytyNaBonowniku.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var ukrytyNaPanelach = runtimeEntityType.AddProperty(
- "UkrytyNaPanelach",
- typeof(short?),
- propertyInfo: typeof(Asort).GetProperty("UkrytyNaPanelach", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- ukrytyNaPanelach.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)),
- keyComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)),
- providerValueComparer: new ValueComparer(
- (Nullable v1, Nullable v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
- (Nullable v) => v.HasValue ? (int)(short)v : 0,
- (Nullable v) => v.HasValue ? (Nullable)(short)v : default(Nullable)));
- ukrytyNaPanelach.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var key = runtimeEntityType.AddKey(
- new[] { asId });
- runtimeEntityType.SetPrimaryKey(key);
- key.AddAnnotation("Relational:Name", "PK_ASORT");
-
- var idx_CentrAsId = runtimeEntityType.AddIndex(
- new[] { centrAsId },
- name: "idx_CentrAsId");
-
- return runtimeEntityType;
- }
-
- public static RuntimeSkipNavigation CreateSkipNavigation1(RuntimeEntityType declaringEntityType, RuntimeEntityType targetEntityType, RuntimeEntityType joinEntityType)
- {
- var skipNavigation = declaringEntityType.AddSkipNavigation(
- "Kasa",
- targetEntityType,
- joinEntityType.FindForeignKey(
- new[] { joinEntityType.FindProperty("AsId") },
- declaringEntityType.FindKey(new[] { declaringEntityType.FindProperty("AsId") }),
- declaringEntityType),
- true,
- false,
- typeof(ICollection),
- propertyInfo: typeof(Asort).GetProperty("Kasa", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
-
- var inverse = targetEntityType.FindSkipNavigation("As");
- if (inverse != null)
- {
- skipNavigation.Inverse = inverse;
- inverse.Inverse = skipNavigation;
- }
-
- return skipNavigation;
- }
-
- public static RuntimeSkipNavigation CreateSkipNavigation2(RuntimeEntityType declaringEntityType, RuntimeEntityType targetEntityType, RuntimeEntityType joinEntityType)
- {
- var skipNavigation = declaringEntityType.AddSkipNavigation(
- "Sklep",
- targetEntityType,
- joinEntityType.FindForeignKey(
- new[] { joinEntityType.FindProperty("AsId") },
- declaringEntityType.FindKey(new[] { declaringEntityType.FindProperty("AsId") }),
- declaringEntityType),
- true,
- false,
- typeof(ICollection),
- propertyInfo: typeof(Asort).GetProperty("Sklep", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Asort).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
-
- var inverse = targetEntityType.FindSkipNavigation("As");
- if (inverse != null)
- {
- skipNavigation.Inverse = inverse;
- inverse.Inverse = skipNavigation;
- }
-
- return skipNavigation;
- }
-
- public static void CreateAnnotations(RuntimeEntityType runtimeEntityType)
- {
- runtimeEntityType.AddAnnotation("Relational:FunctionName", null);
- runtimeEntityType.AddAnnotation("Relational:Schema", null);
- runtimeEntityType.AddAnnotation("Relational:SqlQuery", null);
- runtimeEntityType.AddAnnotation("Relational:TableName", "Asort");
- runtimeEntityType.AddAnnotation("Relational:ViewName", null);
- runtimeEntityType.AddAnnotation("Relational:ViewSchema", null);
-
- Customize(runtimeEntityType);
- }
-
- static partial void Customize(RuntimeEntityType runtimeEntityType);
- }
-}
diff --git a/Blink.Backoffice.Services.PcmDb/CompiledEntities/BankEntityType.cs b/Blink.Backoffice.Services.PcmDb/CompiledEntities/BankEntityType.cs
deleted file mode 100644
index 28e1c63..0000000
--- a/Blink.Backoffice.Services.PcmDb/CompiledEntities/BankEntityType.cs
+++ /dev/null
@@ -1,247 +0,0 @@
-//
-using System;
-using System.Reflection;
-using Blink.Backoffice.Services.PcmDb.Entities;
-using Microsoft.EntityFrameworkCore.ChangeTracking;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal;
-using Microsoft.EntityFrameworkCore.Storage;
-
-#pragma warning disable 219, 612, 618
-#nullable disable
-
-namespace Blink.Backoffice.Services.PcmDb.CompiledEntities
-{
- internal partial class BankEntityType
- {
- public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType baseEntityType = null)
- {
- var runtimeEntityType = model.AddEntityType(
- "Blink.Backoffice.Services.PcmDb.Entities.Bank",
- typeof(Bank),
- baseEntityType);
-
- var bankId = runtimeEntityType.AddProperty(
- "BankId",
- typeof(decimal),
- propertyInfo: typeof(Bank).GetProperty("BankId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Bank).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- valueGenerated: ValueGenerated.OnAdd,
- afterSaveBehavior: PropertySaveBehavior.Throw,
- sentinel: 0m);
- bankId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- keyComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- providerValueComparer: new ValueComparer(
- (decimal v1, decimal v2) => v1 == v2,
- (decimal v) => v.GetHashCode(),
- (decimal v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "numeric(9,0)",
- precision: 9,
- scale: 0));
- bankId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
- bankId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- var adres = runtimeEntityType.AddProperty(
- "Adres",
- typeof(string),
- propertyInfo: typeof(Bank).GetProperty("Adres", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Bank).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- maxLength: 255,
- unicode: false);
- adres.TypeMapping = SqlServerStringTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- keyComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- providerValueComparer: new ValueComparer(
- (string v1, string v2) => v1 == v2,
- (string v) => v.GetHashCode(),
- (string v) => v),
- mappingInfo: new RelationalTypeMappingInfo(
- storeTypeName: "varchar(255)",
- size: 255));
- adres.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var aktywny = runtimeEntityType.AddProperty(
- "Aktywny",
- typeof(short),
- propertyInfo: typeof(Bank).GetProperty("Aktywny", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Bank).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- sentinel: (short)0);
- aktywny.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v),
- keyComparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v),
- providerValueComparer: new ValueComparer(
- (short v1, short v2) => v1 == v2,
- (short v) => (int)v,
- (short v) => v));
- aktywny.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
-
- var centrBankId = runtimeEntityType.AddProperty(
- "CentrBankId",
- typeof(decimal?),
- propertyInfo: typeof(Bank).GetProperty("CentrBankId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- fieldInfo: typeof(Bank).GetField("k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
- nullable: true);
- centrBankId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
- comparer: new ValueComparer(
- (Nullable v1, Nullable