397 lines
26 KiB
C#
397 lines
26 KiB
C#
// <auto-generated />
|
|
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 RegulaParEntityType
|
|
{
|
|
public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType baseEntityType = null)
|
|
{
|
|
var runtimeEntityType = model.AddEntityType(
|
|
"Blink.Backoffice.Services.PcmDb.Entities.RegulaPar",
|
|
typeof(RegulaPar),
|
|
baseEntityType);
|
|
|
|
var parId = runtimeEntityType.AddProperty(
|
|
"ParId",
|
|
typeof(decimal),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("ParId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<ParId>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
afterSaveBehavior: PropertySaveBehavior.Throw,
|
|
sentinel: 0m);
|
|
parId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<decimal>(
|
|
(decimal v1, decimal v2) => v1 == v2,
|
|
(decimal v) => v.GetHashCode(),
|
|
(decimal v) => v),
|
|
keyComparer: new ValueComparer<decimal>(
|
|
(decimal v1, decimal v2) => v1 == v2,
|
|
(decimal v) => v.GetHashCode(),
|
|
(decimal v) => v),
|
|
providerValueComparer: new ValueComparer<decimal>(
|
|
(decimal v1, decimal v2) => v1 == v2,
|
|
(decimal v) => v.GetHashCode(),
|
|
(decimal v) => v),
|
|
mappingInfo: new RelationalTypeMappingInfo(
|
|
storeTypeName: "numeric(9,0)",
|
|
precision: 9,
|
|
scale: 0));
|
|
parId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
|
|
parId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var regulaId = runtimeEntityType.AddProperty(
|
|
"RegulaId",
|
|
typeof(decimal),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("RegulaId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<RegulaId>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
afterSaveBehavior: PropertySaveBehavior.Throw,
|
|
sentinel: 0m);
|
|
regulaId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<decimal>(
|
|
(decimal v1, decimal v2) => v1 == v2,
|
|
(decimal v) => v.GetHashCode(),
|
|
(decimal v) => v),
|
|
keyComparer: new ValueComparer<decimal>(
|
|
(decimal v1, decimal v2) => v1 == v2,
|
|
(decimal v) => v.GetHashCode(),
|
|
(decimal v) => v),
|
|
providerValueComparer: new ValueComparer<decimal>(
|
|
(decimal v1, decimal v2) => v1 == v2,
|
|
(decimal v) => v.GetHashCode(),
|
|
(decimal v) => v),
|
|
mappingInfo: new RelationalTypeMappingInfo(
|
|
storeTypeName: "numeric(9,0)",
|
|
precision: 9,
|
|
scale: 0));
|
|
regulaId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
|
|
regulaId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var kolejnosc = runtimeEntityType.AddProperty(
|
|
"Kolejnosc",
|
|
typeof(int),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Kolejnosc", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Kolejnosc>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
afterSaveBehavior: PropertySaveBehavior.Throw,
|
|
sentinel: 0);
|
|
kolejnosc.TypeMapping = IntTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<int>(
|
|
(int v1, int v2) => v1 == v2,
|
|
(int v) => v,
|
|
(int v) => v),
|
|
keyComparer: new ValueComparer<int>(
|
|
(int v1, int v2) => v1 == v2,
|
|
(int v) => v,
|
|
(int v) => v),
|
|
providerValueComparer: new ValueComparer<int>(
|
|
(int v1, int v2) => v1 == v2,
|
|
(int v) => v,
|
|
(int v) => v));
|
|
kolejnosc.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var kontoId = runtimeEntityType.AddProperty(
|
|
"KontoId",
|
|
typeof(decimal?),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("KontoId", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<KontoId>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
nullable: true);
|
|
kontoId.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
keyComparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
providerValueComparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
mappingInfo: new RelationalTypeMappingInfo(
|
|
storeTypeName: "numeric(9,0)",
|
|
precision: 9,
|
|
scale: 0));
|
|
kontoId.AddAnnotation("Relational:ColumnType", "numeric(9, 0)");
|
|
kontoId.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var opcja = runtimeEntityType.AddProperty(
|
|
"Opcja",
|
|
typeof(short?),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Opcja", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Opcja>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
nullable: true);
|
|
opcja.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)),
|
|
keyComparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)),
|
|
providerValueComparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)));
|
|
opcja.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var opcja2 = runtimeEntityType.AddProperty(
|
|
"Opcja2",
|
|
typeof(short?),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Opcja2", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Opcja2>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
nullable: true);
|
|
opcja2.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)),
|
|
keyComparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)),
|
|
providerValueComparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)));
|
|
opcja2.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var tekst = runtimeEntityType.AddProperty(
|
|
"Tekst",
|
|
typeof(string),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Tekst", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Tekst>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
nullable: true,
|
|
maxLength: 255,
|
|
unicode: false);
|
|
tekst.TypeMapping = SqlServerStringTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<string>(
|
|
(string v1, string v2) => v1 == v2,
|
|
(string v) => v.GetHashCode(),
|
|
(string v) => v),
|
|
keyComparer: new ValueComparer<string>(
|
|
(string v1, string v2) => v1 == v2,
|
|
(string v) => v.GetHashCode(),
|
|
(string v) => v),
|
|
providerValueComparer: new ValueComparer<string>(
|
|
(string v1, string v2) => v1 == v2,
|
|
(string v) => v.GetHashCode(),
|
|
(string v) => v),
|
|
mappingInfo: new RelationalTypeMappingInfo(
|
|
storeTypeName: "varchar(255)",
|
|
size: 255));
|
|
tekst.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var typReguly = runtimeEntityType.AddProperty(
|
|
"TypReguly",
|
|
typeof(short?),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("TypReguly", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<TypReguly>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
nullable: true);
|
|
typReguly.TypeMapping = SqlServerShortTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)),
|
|
keyComparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)),
|
|
providerValueComparer: new ValueComparer<short?>(
|
|
(Nullable<short> v1, Nullable<short> v2) => v1.HasValue && v2.HasValue && (short)v1 == (short)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<short> v) => v.HasValue ? (int)(short)v : 0,
|
|
(Nullable<short> v) => v.HasValue ? (Nullable<short>)(short)v : default(Nullable<short>)));
|
|
typReguly.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var wartosc = runtimeEntityType.AddProperty(
|
|
"Wartosc",
|
|
typeof(decimal?),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Wartosc", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Wartosc>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
nullable: true);
|
|
wartosc.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
keyComparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
providerValueComparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
mappingInfo: new RelationalTypeMappingInfo(
|
|
storeTypeName: "decimal(15,4)",
|
|
precision: 15,
|
|
scale: 4));
|
|
wartosc.AddAnnotation("Relational:ColumnType", "decimal(15, 4)");
|
|
wartosc.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var wartosc2 = runtimeEntityType.AddProperty(
|
|
"Wartosc2",
|
|
typeof(decimal?),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Wartosc2", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Wartosc2>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
nullable: true);
|
|
wartosc2.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
keyComparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
providerValueComparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
mappingInfo: new RelationalTypeMappingInfo(
|
|
storeTypeName: "decimal(15,4)",
|
|
precision: 15,
|
|
scale: 4));
|
|
wartosc2.AddAnnotation("Relational:ColumnType", "decimal(15, 4)");
|
|
wartosc2.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var wartosc3 = runtimeEntityType.AddProperty(
|
|
"Wartosc3",
|
|
typeof(decimal?),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Wartosc3", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Wartosc3>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
nullable: true);
|
|
wartosc3.TypeMapping = SqlServerDecimalTypeMapping.Default.Clone(
|
|
comparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
keyComparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
providerValueComparer: new ValueComparer<decimal?>(
|
|
(Nullable<decimal> v1, Nullable<decimal> v2) => v1.HasValue && v2.HasValue && (decimal)v1 == (decimal)v2 || !v1.HasValue && !v2.HasValue,
|
|
(Nullable<decimal> v) => v.HasValue ? ((decimal)v).GetHashCode() : 0,
|
|
(Nullable<decimal> v) => v.HasValue ? (Nullable<decimal>)(decimal)v : default(Nullable<decimal>)),
|
|
mappingInfo: new RelationalTypeMappingInfo(
|
|
storeTypeName: "decimal(15,4)",
|
|
precision: 15,
|
|
scale: 4));
|
|
wartosc3.AddAnnotation("Relational:ColumnType", "decimal(15, 4)");
|
|
wartosc3.AddAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.None);
|
|
|
|
var key = runtimeEntityType.AddKey(
|
|
new[] { parId, regulaId, kolejnosc });
|
|
runtimeEntityType.SetPrimaryKey(key);
|
|
key.AddAnnotation("Relational:Name", "PK_REGULAPAR");
|
|
|
|
var index = runtimeEntityType.AddIndex(
|
|
new[] { kontoId });
|
|
|
|
var index0 = runtimeEntityType.AddIndex(
|
|
new[] { regulaId });
|
|
|
|
return runtimeEntityType;
|
|
}
|
|
|
|
public static RuntimeForeignKey CreateForeignKey1(RuntimeEntityType declaringEntityType, RuntimeEntityType principalEntityType)
|
|
{
|
|
var runtimeForeignKey = declaringEntityType.AddForeignKey(new[] { declaringEntityType.FindProperty("KontoId") },
|
|
principalEntityType.FindKey(new[] { principalEntityType.FindProperty("KontoId") }),
|
|
principalEntityType);
|
|
|
|
var konto = declaringEntityType.AddNavigation("Konto",
|
|
runtimeForeignKey,
|
|
onDependent: true,
|
|
typeof(KontoLoj),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Konto", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Konto>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
|
|
|
|
var regulaPar = principalEntityType.AddNavigation("RegulaPar",
|
|
runtimeForeignKey,
|
|
onDependent: false,
|
|
typeof(ICollection<RegulaPar>),
|
|
propertyInfo: typeof(KontoLoj).GetProperty("RegulaPar", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(KontoLoj).GetField("<RegulaPar>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
|
|
|
|
runtimeForeignKey.AddAnnotation("Relational:Name", "Ref_RegParKonto");
|
|
return runtimeForeignKey;
|
|
}
|
|
|
|
public static RuntimeForeignKey CreateForeignKey2(RuntimeEntityType declaringEntityType, RuntimeEntityType principalEntityType)
|
|
{
|
|
var runtimeForeignKey = declaringEntityType.AddForeignKey(new[] { declaringEntityType.FindProperty("ParId") },
|
|
principalEntityType.FindKey(new[] { principalEntityType.FindProperty("ParId") }),
|
|
principalEntityType,
|
|
required: true);
|
|
|
|
var par = declaringEntityType.AddNavigation("Par",
|
|
runtimeForeignKey,
|
|
onDependent: true,
|
|
typeof(Paragon),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Par", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Par>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
|
|
|
|
var regulaPar = principalEntityType.AddNavigation("RegulaPar",
|
|
runtimeForeignKey,
|
|
onDependent: false,
|
|
typeof(ICollection<RegulaPar>),
|
|
propertyInfo: typeof(Paragon).GetProperty("RegulaPar", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(Paragon).GetField("<RegulaPar>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
|
|
|
|
runtimeForeignKey.AddAnnotation("Relational:Name", "Ref_RegParPar");
|
|
return runtimeForeignKey;
|
|
}
|
|
|
|
public static RuntimeForeignKey CreateForeignKey3(RuntimeEntityType declaringEntityType, RuntimeEntityType principalEntityType)
|
|
{
|
|
var runtimeForeignKey = declaringEntityType.AddForeignKey(new[] { declaringEntityType.FindProperty("RegulaId") },
|
|
principalEntityType.FindKey(new[] { principalEntityType.FindProperty("RegulaId") }),
|
|
principalEntityType,
|
|
required: true);
|
|
|
|
var regula = declaringEntityType.AddNavigation("Regula",
|
|
runtimeForeignKey,
|
|
onDependent: true,
|
|
typeof(Regula),
|
|
propertyInfo: typeof(RegulaPar).GetProperty("Regula", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(RegulaPar).GetField("<Regula>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
|
|
|
|
var regulaPar = principalEntityType.AddNavigation("RegulaPar",
|
|
runtimeForeignKey,
|
|
onDependent: false,
|
|
typeof(ICollection<RegulaPar>),
|
|
propertyInfo: typeof(Regula).GetProperty("RegulaPar", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
|
|
fieldInfo: typeof(Regula).GetField("<RegulaPar>k__BackingField", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
|
|
|
|
runtimeForeignKey.AddAnnotation("Relational:Name", "Ref_RegParReg");
|
|
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", "RegulaPar");
|
|
runtimeEntityType.AddAnnotation("Relational:ViewName", null);
|
|
runtimeEntityType.AddAnnotation("Relational:ViewSchema", null);
|
|
|
|
Customize(runtimeEntityType);
|
|
}
|
|
|
|
static partial void Customize(RuntimeEntityType runtimeEntityType);
|
|
}
|
|
}
|