diff --git a/src/EFCore/Metadata/Conventions/NonNullableConventionBase.cs b/src/EFCore/Metadata/Conventions/NonNullableConventionBase.cs
index 78ddc34d8d9..f88c1098f7c 100644
--- a/src/EFCore/Metadata/Conventions/NonNullableConventionBase.cs
+++ b/src/EFCore/Metadata/Conventions/NonNullableConventionBase.cs
@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
+using Microsoft.EntityFrameworkCore.Metadata.Internal;
namespace Microsoft.EntityFrameworkCore.Metadata.Conventions;
@@ -14,8 +15,6 @@ namespace Microsoft.EntityFrameworkCore.Metadata.Conventions;
///
public abstract class NonNullableConventionBase : IModelFinalizingConvention
{
- private const string StateAnnotationName = "NonNullableConventionState";
-
///
/// Creates a new instance of .
///
@@ -50,8 +49,8 @@ protected virtual bool TryGetNullabilityInfo(
}
var annotation =
- modelBuilder.Metadata.FindAnnotation(StateAnnotationName)
- ?? modelBuilder.Metadata.AddAnnotation(StateAnnotationName, new NullabilityInfoContext());
+ modelBuilder.Metadata.FindAnnotation(CoreAnnotationNames.NonNullableConventionState)
+ ?? modelBuilder.Metadata.AddAnnotation(CoreAnnotationNames.NonNullableConventionState, new NullabilityInfoContext());
var nullabilityInfoContext = (NullabilityInfoContext)annotation.Value!;
@@ -69,5 +68,5 @@ protected virtual bool TryGetNullabilityInfo(
public virtual void ProcessModelFinalizing(
IConventionModelBuilder modelBuilder,
IConventionContext context)
- => modelBuilder.Metadata.RemoveAnnotation(StateAnnotationName);
+ => modelBuilder.Metadata.RemoveAnnotation(CoreAnnotationNames.NonNullableConventionState);
}
diff --git a/src/EFCore/Metadata/Internal/CoreAnnotationNames.cs b/src/EFCore/Metadata/Internal/CoreAnnotationNames.cs
index 3db5be6b3f8..cb6e7a32c61 100644
--- a/src/EFCore/Metadata/Internal/CoreAnnotationNames.cs
+++ b/src/EFCore/Metadata/Internal/CoreAnnotationNames.cs
@@ -372,6 +372,14 @@ public static class CoreAnnotationNames
///
public const string UnsafeAccessors = "UnsafeAccessors";
+ ///
+ /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
+ /// the same compatibility standards as public APIs. It may be changed or removed without notice in
+ /// any release. You should only use it directly in your code with extreme caution and knowing that
+ /// doing so can result in application failures when updating to a new Entity Framework Core release.
+ ///
+ public const string NonNullableConventionState = "NonNullableConventionState";
+
///
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
@@ -426,6 +434,7 @@ public static class CoreAnnotationNames
JsonValueReaderWriterType,
ElementType,
SkipNavigationBeingConfigured,
- UnsafeAccessors
+ UnsafeAccessors,
+ NonNullableConventionState
};
}
diff --git a/test/EFCore.Cosmos.FunctionalTests/Scaffolding/Baselines/BigModel/ManyTypesEntityType.cs b/test/EFCore.Cosmos.FunctionalTests/Scaffolding/Baselines/BigModel/ManyTypesEntityType.cs
index 23192b1e6b6..7deabfede83 100644
--- a/test/EFCore.Cosmos.FunctionalTests/Scaffolding/Baselines/BigModel/ManyTypesEntityType.cs
+++ b/test/EFCore.Cosmos.FunctionalTests/Scaffolding/Baselines/BigModel/ManyTypesEntityType.cs
@@ -39,7 +39,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
baseEntityType,
discriminatorProperty: "$type",
discriminatorValue: "ManyTypes",
- propertyCount: 166,
+ propertyCount: 170,
keyCount: 1);
var id = runtimeEntityType.AddProperty(
@@ -304,6 +304,64 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
clrType: typeof(bool),
jsonValueReaderWriter: JsonBoolReaderWriter.Instance)));
+ var boolReadOnlyCollection = runtimeEntityType.AddProperty(
+ "BoolReadOnlyCollection",
+ typeof(IReadOnlyCollection),
+ propertyInfo: typeof(CompiledModelTestBase.ManyTypes).GetProperty("BoolReadOnlyCollection", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
+ fieldInfo: typeof(CompiledModelTestBase.ManyTypes).GetField("_boolReadOnlyCollection", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
+ boolReadOnlyCollection.SetGetter(
+ IReadOnlyCollection (CompiledModelTestBase.ManyTypes entity) => (ManyTypesUnsafeAccessors._boolReadOnlyCollection(entity) == null ? null : ((IReadOnlyCollection)(ManyTypesUnsafeAccessors._boolReadOnlyCollection(entity)))),
+ bool (CompiledModelTestBase.ManyTypes entity) => ManyTypesUnsafeAccessors._boolReadOnlyCollection(entity) == null,
+ IReadOnlyCollection (CompiledModelTestBase.ManyTypes instance) => (ManyTypesUnsafeAccessors._boolReadOnlyCollection(instance) == null ? null : ((IReadOnlyCollection)(ManyTypesUnsafeAccessors._boolReadOnlyCollection(instance)))),
+ bool (CompiledModelTestBase.ManyTypes instance) => ManyTypesUnsafeAccessors._boolReadOnlyCollection(instance) == null);
+ boolReadOnlyCollection.SetSetter(
+ (CompiledModelTestBase.ManyTypes entity, IReadOnlyCollection value) => ManyTypesUnsafeAccessors._boolReadOnlyCollection(entity) = ((List)(value)));
+ boolReadOnlyCollection.SetMaterializationSetter(
+ (CompiledModelTestBase.ManyTypes entity, IReadOnlyCollection value) => ManyTypesUnsafeAccessors._boolReadOnlyCollection(entity) = ((List)(value)));
+ boolReadOnlyCollection.SetAccessors(
+ IReadOnlyCollection (InternalEntityEntry entry) => ((IReadOnlyCollection)(ManyTypesUnsafeAccessors._boolReadOnlyCollection(((CompiledModelTestBase.ManyTypes)(entry.Entity))))),
+ IReadOnlyCollection (InternalEntityEntry entry) => ((IReadOnlyCollection)(ManyTypesUnsafeAccessors._boolReadOnlyCollection(((CompiledModelTestBase.ManyTypes)(entry.Entity))))),
+ IReadOnlyCollection (InternalEntityEntry entry) => entry.ReadOriginalValue>(boolReadOnlyCollection, 5),
+ IReadOnlyCollection (InternalEntityEntry entry) => entry.GetCurrentValue>(boolReadOnlyCollection),
+ object (ValueBuffer valueBuffer) => valueBuffer[5]);
+ boolReadOnlyCollection.SetPropertyIndexes(
+ index: 5,
+ originalValueIndex: 5,
+ shadowIndex: -1,
+ relationshipIndex: -1,
+ storeGenerationIndex: -1);
+ boolReadOnlyCollection.TypeMapping = CosmosTypeMapping.Default.Clone(
+ comparer: new ListOfValueTypesComparer, bool>(new ValueComparer(
+ bool (bool v1, bool v2) => v1 == v2,
+ int (bool v) => ((object)v).GetHashCode(),
+ bool (bool v) => v)),
+ keyComparer: new ValueComparer>(
+ bool (IReadOnlyCollection v1, IReadOnlyCollection v2) => object.Equals(v1, v2),
+ int (IReadOnlyCollection v) => ((object)v).GetHashCode(),
+ IReadOnlyCollection (IReadOnlyCollection v) => v),
+ providerValueComparer: new ValueComparer>(
+ bool (IReadOnlyCollection v1, IReadOnlyCollection v2) => object.Equals(v1, v2),
+ int (IReadOnlyCollection v) => ((object)v).GetHashCode(),
+ IReadOnlyCollection (IReadOnlyCollection v) => v),
+ clrType: typeof(IReadOnlyCollection),
+ jsonValueReaderWriter: new JsonCollectionOfStructsReaderWriter, bool>(
+ JsonBoolReaderWriter.Instance),
+ elementMapping: CosmosTypeMapping.Default.Clone(
+ comparer: new ValueComparer(
+ bool (bool v1, bool v2) => v1 == v2,
+ int (bool v) => ((object)v).GetHashCode(),
+ bool (bool v) => v),
+ keyComparer: new ValueComparer(
+ bool (bool v1, bool v2) => v1 == v2,
+ int (bool v) => ((object)v).GetHashCode(),
+ bool (bool v) => v),
+ providerValueComparer: new ValueComparer(
+ bool (bool v1, bool v2) => v1 == v2,
+ int (bool v) => ((object)v).GetHashCode(),
+ bool (bool v) => v),
+ clrType: typeof(bool),
+ jsonValueReaderWriter: JsonBoolReaderWriter.Instance));
+
var boolToStringConverterProperty = runtimeEntityType.AddProperty(
"BoolToStringConverterProperty",
typeof(bool),
@@ -321,12 +379,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
boolToStringConverterProperty.SetAccessors(
bool (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.BoolToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
bool (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.BoolToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- bool (InternalEntityEntry entry) => entry.ReadOriginalValue(boolToStringConverterProperty, 5),
+ bool (InternalEntityEntry entry) => entry.ReadOriginalValue(boolToStringConverterProperty, 6),
bool (InternalEntityEntry entry) => entry.GetCurrentValue(boolToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[5]);
+ object (ValueBuffer valueBuffer) => valueBuffer[6]);
boolToStringConverterProperty.SetPropertyIndexes(
- index: 5,
- originalValueIndex: 5,
+ index: 6,
+ originalValueIndex: 6,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -370,12 +428,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
boolToTwoValuesConverterProperty.SetAccessors(
bool (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.BoolToTwoValuesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
bool (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.BoolToTwoValuesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- bool (InternalEntityEntry entry) => entry.ReadOriginalValue(boolToTwoValuesConverterProperty, 6),
+ bool (InternalEntityEntry entry) => entry.ReadOriginalValue(boolToTwoValuesConverterProperty, 7),
bool (InternalEntityEntry entry) => entry.GetCurrentValue(boolToTwoValuesConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[6]);
+ object (ValueBuffer valueBuffer) => valueBuffer[7]);
boolToTwoValuesConverterProperty.SetPropertyIndexes(
- index: 6,
- originalValueIndex: 6,
+ index: 7,
+ originalValueIndex: 7,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -420,12 +478,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
boolToZeroOneConverterProperty.SetAccessors(
bool (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.BoolToZeroOneConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
bool (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.BoolToZeroOneConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- bool (InternalEntityEntry entry) => entry.ReadOriginalValue(boolToZeroOneConverterProperty, 7),
+ bool (InternalEntityEntry entry) => entry.ReadOriginalValue(boolToZeroOneConverterProperty, 8),
bool (InternalEntityEntry entry) => entry.GetCurrentValue(boolToZeroOneConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[7]);
+ object (ValueBuffer valueBuffer) => valueBuffer[8]);
boolToZeroOneConverterProperty.SetPropertyIndexes(
- index: 7,
- originalValueIndex: 7,
+ index: 8,
+ originalValueIndex: 8,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -469,12 +527,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
bytes.SetAccessors(
byte[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Bytes(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
byte[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Bytes(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- byte[] (InternalEntityEntry entry) => entry.ReadOriginalValue(bytes, 8),
+ byte[] (InternalEntityEntry entry) => entry.ReadOriginalValue(bytes, 9),
byte[] (InternalEntityEntry entry) => entry.GetCurrentValue(bytes),
- object (ValueBuffer valueBuffer) => valueBuffer[8]);
+ object (ValueBuffer valueBuffer) => valueBuffer[9]);
bytes.SetPropertyIndexes(
- index: 8,
- originalValueIndex: 8,
+ index: 9,
+ originalValueIndex: 9,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -519,12 +577,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
bytesToStringConverterProperty.SetAccessors(
byte[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.BytesToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
byte[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.BytesToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- byte[] (InternalEntityEntry entry) => entry.ReadOriginalValue(bytesToStringConverterProperty, 9),
+ byte[] (InternalEntityEntry entry) => entry.ReadOriginalValue(bytesToStringConverterProperty, 10),
byte[] (InternalEntityEntry entry) => entry.GetCurrentValue(bytesToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[9]);
+ object (ValueBuffer valueBuffer) => valueBuffer[10]);
bytesToStringConverterProperty.SetPropertyIndexes(
- index: 9,
- originalValueIndex: 9,
+ index: 10,
+ originalValueIndex: 10,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -568,12 +626,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
castingConverterProperty.SetAccessors(
int (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.CastingConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
int (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.CastingConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- int (InternalEntityEntry entry) => entry.ReadOriginalValue(castingConverterProperty, 10),
+ int (InternalEntityEntry entry) => entry.ReadOriginalValue(castingConverterProperty, 11),
int (InternalEntityEntry entry) => entry.GetCurrentValue(castingConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[10]);
+ object (ValueBuffer valueBuffer) => valueBuffer[11]);
castingConverterProperty.SetPropertyIndexes(
- index: 10,
- originalValueIndex: 10,
+ index: 11,
+ originalValueIndex: 11,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -618,12 +676,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
@char.SetAccessors(
char (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Char(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
char (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Char(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- char (InternalEntityEntry entry) => entry.ReadOriginalValue(@char, 11),
+ char (InternalEntityEntry entry) => entry.ReadOriginalValue(@char, 12),
char (InternalEntityEntry entry) => entry.GetCurrentValue(@char),
- object (ValueBuffer valueBuffer) => valueBuffer[11]);
+ object (ValueBuffer valueBuffer) => valueBuffer[12]);
@char.SetPropertyIndexes(
- index: 11,
- originalValueIndex: 11,
+ index: 12,
+ originalValueIndex: 12,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -660,12 +718,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
charArray.SetAccessors(
char[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.CharArray(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
char[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.CharArray(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- char[] (InternalEntityEntry entry) => entry.ReadOriginalValue(charArray, 12),
+ char[] (InternalEntityEntry entry) => entry.ReadOriginalValue(charArray, 13),
char[] (InternalEntityEntry entry) => entry.GetCurrentValue(charArray),
- object (ValueBuffer valueBuffer) => valueBuffer[12]);
+ object (ValueBuffer valueBuffer) => valueBuffer[13]);
charArray.SetPropertyIndexes(
- index: 12,
- originalValueIndex: 12,
+ index: 13,
+ originalValueIndex: 13,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -718,12 +776,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
charNestedCollection.SetAccessors(
char[][] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.CharNestedCollection(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
char[][] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.CharNestedCollection(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- char[][] (InternalEntityEntry entry) => entry.ReadOriginalValue(charNestedCollection, 13),
+ char[][] (InternalEntityEntry entry) => entry.ReadOriginalValue(charNestedCollection, 14),
char[][] (InternalEntityEntry entry) => entry.GetCurrentValue(charNestedCollection),
- object (ValueBuffer valueBuffer) => valueBuffer[13]);
+ object (ValueBuffer valueBuffer) => valueBuffer[14]);
charNestedCollection.SetPropertyIndexes(
- index: 13,
- originalValueIndex: 13,
+ index: 14,
+ originalValueIndex: 14,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -794,12 +852,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
charToStringConverterProperty.SetAccessors(
char (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.CharToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
char (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.CharToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- char (InternalEntityEntry entry) => entry.ReadOriginalValue(charToStringConverterProperty, 14),
+ char (InternalEntityEntry entry) => entry.ReadOriginalValue(charToStringConverterProperty, 15),
char (InternalEntityEntry entry) => entry.GetCurrentValue(charToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[14]);
+ object (ValueBuffer valueBuffer) => valueBuffer[15]);
charToStringConverterProperty.SetPropertyIndexes(
- index: 14,
- originalValueIndex: 14,
+ index: 15,
+ originalValueIndex: 15,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -844,12 +902,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateOnly.SetAccessors(
DateOnly (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateOnly(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateOnly (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateOnly(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateOnly (InternalEntityEntry entry) => entry.ReadOriginalValue(dateOnly, 15),
+ DateOnly (InternalEntityEntry entry) => entry.ReadOriginalValue(dateOnly, 16),
DateOnly (InternalEntityEntry entry) => entry.GetCurrentValue(dateOnly),
- object (ValueBuffer valueBuffer) => valueBuffer[15]);
+ object (ValueBuffer valueBuffer) => valueBuffer[16]);
dateOnly.SetPropertyIndexes(
- index: 15,
- originalValueIndex: 15,
+ index: 16,
+ originalValueIndex: 16,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -887,12 +945,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateOnlyToStringConverterProperty.SetAccessors(
DateOnly (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateOnlyToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateOnly (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateOnlyToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateOnly (InternalEntityEntry entry) => entry.ReadOriginalValue(dateOnlyToStringConverterProperty, 16),
+ DateOnly (InternalEntityEntry entry) => entry.ReadOriginalValue(dateOnlyToStringConverterProperty, 17),
DateOnly (InternalEntityEntry entry) => entry.GetCurrentValue(dateOnlyToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[16]);
+ object (ValueBuffer valueBuffer) => valueBuffer[17]);
dateOnlyToStringConverterProperty.SetPropertyIndexes(
- index: 16,
- originalValueIndex: 16,
+ index: 17,
+ originalValueIndex: 17,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -937,12 +995,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateTime.SetAccessors(
DateTime (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTime(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateTime (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTime(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateTime (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTime, 17),
+ DateTime (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTime, 18),
DateTime (InternalEntityEntry entry) => entry.GetCurrentValue(dateTime),
- object (ValueBuffer valueBuffer) => valueBuffer[17]);
+ object (ValueBuffer valueBuffer) => valueBuffer[18]);
dateTime.SetPropertyIndexes(
- index: 17,
- originalValueIndex: 17,
+ index: 18,
+ originalValueIndex: 18,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -980,12 +1038,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateTimeOffsetToBinaryConverterProperty.SetAccessors(
DateTimeOffset (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeOffsetToBinaryConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateTimeOffset (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeOffsetToBinaryConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateTimeOffset (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeOffsetToBinaryConverterProperty, 18),
+ DateTimeOffset (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeOffsetToBinaryConverterProperty, 19),
DateTimeOffset (InternalEntityEntry entry) => entry.GetCurrentValue(dateTimeOffsetToBinaryConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[18]);
+ object (ValueBuffer valueBuffer) => valueBuffer[19]);
dateTimeOffsetToBinaryConverterProperty.SetPropertyIndexes(
- index: 18,
- originalValueIndex: 18,
+ index: 19,
+ originalValueIndex: 19,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1030,12 +1088,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateTimeOffsetToBytesConverterProperty.SetAccessors(
DateTimeOffset (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeOffsetToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateTimeOffset (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeOffsetToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateTimeOffset (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeOffsetToBytesConverterProperty, 19),
+ DateTimeOffset (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeOffsetToBytesConverterProperty, 20),
DateTimeOffset (InternalEntityEntry entry) => entry.GetCurrentValue(dateTimeOffsetToBytesConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[19]);
+ object (ValueBuffer valueBuffer) => valueBuffer[20]);
dateTimeOffsetToBytesConverterProperty.SetPropertyIndexes(
- index: 19,
- originalValueIndex: 19,
+ index: 20,
+ originalValueIndex: 20,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1080,12 +1138,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateTimeOffsetToStringConverterProperty.SetAccessors(
DateTimeOffset (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeOffsetToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateTimeOffset (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeOffsetToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateTimeOffset (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeOffsetToStringConverterProperty, 20),
+ DateTimeOffset (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeOffsetToStringConverterProperty, 21),
DateTimeOffset (InternalEntityEntry entry) => entry.GetCurrentValue(dateTimeOffsetToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[20]);
+ object (ValueBuffer valueBuffer) => valueBuffer[21]);
dateTimeOffsetToStringConverterProperty.SetPropertyIndexes(
- index: 20,
- originalValueIndex: 20,
+ index: 21,
+ originalValueIndex: 21,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1130,12 +1188,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateTimeToBinaryConverterProperty.SetAccessors(
DateTime (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeToBinaryConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateTime (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeToBinaryConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateTime (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeToBinaryConverterProperty, 21),
+ DateTime (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeToBinaryConverterProperty, 22),
DateTime (InternalEntityEntry entry) => entry.GetCurrentValue(dateTimeToBinaryConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[21]);
+ object (ValueBuffer valueBuffer) => valueBuffer[22]);
dateTimeToBinaryConverterProperty.SetPropertyIndexes(
- index: 21,
- originalValueIndex: 21,
+ index: 22,
+ originalValueIndex: 22,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1180,12 +1238,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateTimeToStringConverterProperty.SetAccessors(
DateTime (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateTime (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateTime (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeToStringConverterProperty, 22),
+ DateTime (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeToStringConverterProperty, 23),
DateTime (InternalEntityEntry entry) => entry.GetCurrentValue(dateTimeToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[22]);
+ object (ValueBuffer valueBuffer) => valueBuffer[23]);
dateTimeToStringConverterProperty.SetPropertyIndexes(
- index: 22,
- originalValueIndex: 22,
+ index: 23,
+ originalValueIndex: 23,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1230,12 +1288,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
dateTimeToTicksConverterProperty.SetAccessors(
DateTime (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeToTicksConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
DateTime (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DateTimeToTicksConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- DateTime (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeToTicksConverterProperty, 23),
+ DateTime (InternalEntityEntry entry) => entry.ReadOriginalValue(dateTimeToTicksConverterProperty, 24),
DateTime (InternalEntityEntry entry) => entry.GetCurrentValue(dateTimeToTicksConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[23]);
+ object (ValueBuffer valueBuffer) => valueBuffer[24]);
dateTimeToTicksConverterProperty.SetPropertyIndexes(
- index: 23,
- originalValueIndex: 23,
+ index: 24,
+ originalValueIndex: 24,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1273,12 +1331,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
@decimal.SetAccessors(
decimal (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Decimal(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
decimal (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Decimal(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- decimal (InternalEntityEntry entry) => entry.ReadOriginalValue(@decimal, 24),
+ decimal (InternalEntityEntry entry) => entry.ReadOriginalValue(@decimal, 25),
decimal (InternalEntityEntry entry) => entry.GetCurrentValue(@decimal),
- object (ValueBuffer valueBuffer) => valueBuffer[24]);
+ object (ValueBuffer valueBuffer) => valueBuffer[25]);
@decimal.SetPropertyIndexes(
- index: 24,
- originalValueIndex: 24,
+ index: 25,
+ originalValueIndex: 25,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1315,12 +1373,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
decimalArray.SetAccessors(
decimal[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DecimalArray(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
decimal[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DecimalArray(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- decimal[] (InternalEntityEntry entry) => entry.ReadOriginalValue(decimalArray, 25),
+ decimal[] (InternalEntityEntry entry) => entry.ReadOriginalValue(decimalArray, 26),
decimal[] (InternalEntityEntry entry) => entry.GetCurrentValue(decimalArray),
- object (ValueBuffer valueBuffer) => valueBuffer[25]);
+ object (ValueBuffer valueBuffer) => valueBuffer[26]);
decimalArray.SetPropertyIndexes(
- index: 25,
- originalValueIndex: 25,
+ index: 26,
+ originalValueIndex: 26,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1374,12 +1432,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
decimalNumberToBytesConverterProperty.SetAccessors(
decimal (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DecimalNumberToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
decimal (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DecimalNumberToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- decimal (InternalEntityEntry entry) => entry.ReadOriginalValue(decimalNumberToBytesConverterProperty, 26),
+ decimal (InternalEntityEntry entry) => entry.ReadOriginalValue(decimalNumberToBytesConverterProperty, 27),
decimal (InternalEntityEntry entry) => entry.GetCurrentValue(decimalNumberToBytesConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[26]);
+ object (ValueBuffer valueBuffer) => valueBuffer[27]);
decimalNumberToBytesConverterProperty.SetPropertyIndexes(
- index: 26,
- originalValueIndex: 26,
+ index: 27,
+ originalValueIndex: 27,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1424,12 +1482,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
decimalNumberToStringConverterProperty.SetAccessors(
decimal (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DecimalNumberToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
decimal (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DecimalNumberToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- decimal (InternalEntityEntry entry) => entry.ReadOriginalValue(decimalNumberToStringConverterProperty, 27),
+ decimal (InternalEntityEntry entry) => entry.ReadOriginalValue(decimalNumberToStringConverterProperty, 28),
decimal (InternalEntityEntry entry) => entry.GetCurrentValue(decimalNumberToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[27]);
+ object (ValueBuffer valueBuffer) => valueBuffer[28]);
decimalNumberToStringConverterProperty.SetPropertyIndexes(
- index: 27,
- originalValueIndex: 27,
+ index: 28,
+ originalValueIndex: 28,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1474,12 +1532,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
@double.SetAccessors(
double (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Double(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
double (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Double(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- double (InternalEntityEntry entry) => entry.ReadOriginalValue(@double, 28),
+ double (InternalEntityEntry entry) => entry.ReadOriginalValue(@double, 29),
double (InternalEntityEntry entry) => entry.GetCurrentValue(@double),
- object (ValueBuffer valueBuffer) => valueBuffer[28]);
+ object (ValueBuffer valueBuffer) => valueBuffer[29]);
@double.SetPropertyIndexes(
- index: 28,
- originalValueIndex: 28,
+ index: 29,
+ originalValueIndex: 29,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1516,12 +1574,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
doubleArray.SetAccessors(
double[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DoubleArray(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
double[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DoubleArray(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- double[] (InternalEntityEntry entry) => entry.ReadOriginalValue(doubleArray, 29),
+ double[] (InternalEntityEntry entry) => entry.ReadOriginalValue(doubleArray, 30),
double[] (InternalEntityEntry entry) => entry.GetCurrentValue(doubleArray),
- object (ValueBuffer valueBuffer) => valueBuffer[29]);
+ object (ValueBuffer valueBuffer) => valueBuffer[30]);
doubleArray.SetPropertyIndexes(
- index: 29,
- originalValueIndex: 29,
+ index: 30,
+ originalValueIndex: 30,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1575,12 +1633,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
doubleNumberToBytesConverterProperty.SetAccessors(
double (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DoubleNumberToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
double (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DoubleNumberToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- double (InternalEntityEntry entry) => entry.ReadOriginalValue(doubleNumberToBytesConverterProperty, 30),
+ double (InternalEntityEntry entry) => entry.ReadOriginalValue(doubleNumberToBytesConverterProperty, 31),
double (InternalEntityEntry entry) => entry.GetCurrentValue(doubleNumberToBytesConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[30]);
+ object (ValueBuffer valueBuffer) => valueBuffer[31]);
doubleNumberToBytesConverterProperty.SetPropertyIndexes(
- index: 30,
- originalValueIndex: 30,
+ index: 31,
+ originalValueIndex: 31,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1625,12 +1683,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
doubleNumberToStringConverterProperty.SetAccessors(
double (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DoubleNumberToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
double (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.DoubleNumberToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- double (InternalEntityEntry entry) => entry.ReadOriginalValue(doubleNumberToStringConverterProperty, 31),
+ double (InternalEntityEntry entry) => entry.ReadOriginalValue(doubleNumberToStringConverterProperty, 32),
double (InternalEntityEntry entry) => entry.GetCurrentValue(doubleNumberToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[31]);
+ object (ValueBuffer valueBuffer) => valueBuffer[32]);
doubleNumberToStringConverterProperty.SetPropertyIndexes(
- index: 31,
- originalValueIndex: 31,
+ index: 32,
+ originalValueIndex: 32,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1674,12 +1732,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enum16.SetAccessors(
CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum16(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum16(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum16, 32),
+ CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum16, 33),
CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => entry.GetCurrentValue(enum16),
- object (ValueBuffer valueBuffer) => valueBuffer[32]);
+ object (ValueBuffer valueBuffer) => valueBuffer[33]);
enum16.SetPropertyIndexes(
- index: 32,
- originalValueIndex: 32,
+ index: 33,
+ originalValueIndex: 33,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1724,12 +1782,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enum16AsString.SetAccessors(
CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum16AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum16AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum16AsString, 33),
+ CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum16AsString, 34),
CompiledModelTestBase.Enum16 (InternalEntityEntry entry) => entry.GetCurrentValue(enum16AsString),
- object (ValueBuffer valueBuffer) => valueBuffer[33]);
+ object (ValueBuffer valueBuffer) => valueBuffer[34]);
enum16AsString.SetPropertyIndexes(
- index: 33,
- originalValueIndex: 33,
+ index: 34,
+ originalValueIndex: 34,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1773,12 +1831,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enum32.SetAccessors(
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum32(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum32(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum32, 34),
+ CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum32, 35),
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.GetCurrentValue(enum32),
- object (ValueBuffer valueBuffer) => valueBuffer[34]);
+ object (ValueBuffer valueBuffer) => valueBuffer[35]);
enum32.SetPropertyIndexes(
- index: 34,
- originalValueIndex: 34,
+ index: 35,
+ originalValueIndex: 35,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1823,12 +1881,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enum32AsString.SetAccessors(
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum32AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum32AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum32AsString, 35),
+ CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum32AsString, 36),
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.GetCurrentValue(enum32AsString),
- object (ValueBuffer valueBuffer) => valueBuffer[35]);
+ object (ValueBuffer valueBuffer) => valueBuffer[36]);
enum32AsString.SetPropertyIndexes(
- index: 35,
- originalValueIndex: 35,
+ index: 36,
+ originalValueIndex: 36,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1872,12 +1930,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enum64.SetAccessors(
CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum64(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum64(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum64, 36),
+ CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum64, 37),
CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => entry.GetCurrentValue(enum64),
- object (ValueBuffer valueBuffer) => valueBuffer[36]);
+ object (ValueBuffer valueBuffer) => valueBuffer[37]);
enum64.SetPropertyIndexes(
- index: 36,
- originalValueIndex: 36,
+ index: 37,
+ originalValueIndex: 37,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1922,12 +1980,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enum64AsString.SetAccessors(
CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum64AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum64AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum64AsString, 37),
+ CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum64AsString, 38),
CompiledModelTestBase.Enum64 (InternalEntityEntry entry) => entry.GetCurrentValue(enum64AsString),
- object (ValueBuffer valueBuffer) => valueBuffer[37]);
+ object (ValueBuffer valueBuffer) => valueBuffer[38]);
enum64AsString.SetPropertyIndexes(
- index: 37,
- originalValueIndex: 37,
+ index: 38,
+ originalValueIndex: 38,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -1971,12 +2029,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enum8.SetAccessors(
CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum8(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum8(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum8, 38),
+ CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum8, 39),
CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => entry.GetCurrentValue(enum8),
- object (ValueBuffer valueBuffer) => valueBuffer[38]);
+ object (ValueBuffer valueBuffer) => valueBuffer[39]);
enum8.SetPropertyIndexes(
- index: 38,
- originalValueIndex: 38,
+ index: 39,
+ originalValueIndex: 39,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2021,12 +2079,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enum8AsString.SetAccessors(
CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum8AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Enum8AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum8AsString, 39),
+ CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => entry.ReadOriginalValue(enum8AsString, 40),
CompiledModelTestBase.Enum8 (InternalEntityEntry entry) => entry.GetCurrentValue(enum8AsString),
- object (ValueBuffer valueBuffer) => valueBuffer[39]);
+ object (ValueBuffer valueBuffer) => valueBuffer[40]);
enum8AsString.SetPropertyIndexes(
- index: 39,
- originalValueIndex: 39,
+ index: 40,
+ originalValueIndex: 40,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2071,12 +2129,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumToNumberConverterProperty.SetAccessors(
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumToNumberConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumToNumberConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumToNumberConverterProperty, 40),
+ CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumToNumberConverterProperty, 41),
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.GetCurrentValue(enumToNumberConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[40]);
+ object (ValueBuffer valueBuffer) => valueBuffer[41]);
enumToNumberConverterProperty.SetPropertyIndexes(
- index: 40,
- originalValueIndex: 40,
+ index: 41,
+ originalValueIndex: 41,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2121,12 +2179,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumToStringConverterProperty.SetAccessors(
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumToStringConverterProperty, 41),
+ CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumToStringConverterProperty, 42),
CompiledModelTestBase.Enum32 (InternalEntityEntry entry) => entry.GetCurrentValue(enumToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[41]);
+ object (ValueBuffer valueBuffer) => valueBuffer[42]);
enumToStringConverterProperty.SetPropertyIndexes(
- index: 41,
- originalValueIndex: 41,
+ index: 42,
+ originalValueIndex: 42,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2170,12 +2228,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumU16.SetAccessors(
CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU16(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU16(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU16, 42),
+ CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU16, 43),
CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => entry.GetCurrentValue(enumU16),
- object (ValueBuffer valueBuffer) => valueBuffer[42]);
+ object (ValueBuffer valueBuffer) => valueBuffer[43]);
enumU16.SetPropertyIndexes(
- index: 42,
- originalValueIndex: 42,
+ index: 43,
+ originalValueIndex: 43,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2220,12 +2278,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumU16AsString.SetAccessors(
CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU16AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU16AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU16AsString, 43),
+ CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU16AsString, 44),
CompiledModelTestBase.EnumU16 (InternalEntityEntry entry) => entry.GetCurrentValue(enumU16AsString),
- object (ValueBuffer valueBuffer) => valueBuffer[43]);
+ object (ValueBuffer valueBuffer) => valueBuffer[44]);
enumU16AsString.SetPropertyIndexes(
- index: 43,
- originalValueIndex: 43,
+ index: 44,
+ originalValueIndex: 44,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2269,12 +2327,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumU32.SetAccessors(
CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU32(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU32(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU32, 44),
+ CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU32, 45),
CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => entry.GetCurrentValue(enumU32),
- object (ValueBuffer valueBuffer) => valueBuffer[44]);
+ object (ValueBuffer valueBuffer) => valueBuffer[45]);
enumU32.SetPropertyIndexes(
- index: 44,
- originalValueIndex: 44,
+ index: 45,
+ originalValueIndex: 45,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2319,12 +2377,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumU32AsString.SetAccessors(
CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU32AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU32AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU32AsString, 45),
+ CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU32AsString, 46),
CompiledModelTestBase.EnumU32 (InternalEntityEntry entry) => entry.GetCurrentValue(enumU32AsString),
- object (ValueBuffer valueBuffer) => valueBuffer[45]);
+ object (ValueBuffer valueBuffer) => valueBuffer[46]);
enumU32AsString.SetPropertyIndexes(
- index: 45,
- originalValueIndex: 45,
+ index: 46,
+ originalValueIndex: 46,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2368,12 +2426,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumU64.SetAccessors(
CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU64(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU64(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU64, 46),
+ CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU64, 47),
CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => entry.GetCurrentValue(enumU64),
- object (ValueBuffer valueBuffer) => valueBuffer[46]);
+ object (ValueBuffer valueBuffer) => valueBuffer[47]);
enumU64.SetPropertyIndexes(
- index: 46,
- originalValueIndex: 46,
+ index: 47,
+ originalValueIndex: 47,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2418,12 +2476,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumU64AsString.SetAccessors(
CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU64AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU64AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU64AsString, 47),
+ CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU64AsString, 48),
CompiledModelTestBase.EnumU64 (InternalEntityEntry entry) => entry.GetCurrentValue(enumU64AsString),
- object (ValueBuffer valueBuffer) => valueBuffer[47]);
+ object (ValueBuffer valueBuffer) => valueBuffer[48]);
enumU64AsString.SetPropertyIndexes(
- index: 47,
- originalValueIndex: 47,
+ index: 48,
+ originalValueIndex: 48,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2467,12 +2525,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumU8.SetAccessors(
CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU8(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU8(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU8, 48),
+ CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU8, 49),
CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => entry.GetCurrentValue(enumU8),
- object (ValueBuffer valueBuffer) => valueBuffer[48]);
+ object (ValueBuffer valueBuffer) => valueBuffer[49]);
enumU8.SetPropertyIndexes(
- index: 48,
- originalValueIndex: 48,
+ index: 49,
+ originalValueIndex: 49,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2517,12 +2575,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
enumU8AsString.SetAccessors(
CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU8AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.EnumU8AsString(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU8AsString, 49),
+ CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => entry.ReadOriginalValue(enumU8AsString, 50),
CompiledModelTestBase.EnumU8 (InternalEntityEntry entry) => entry.GetCurrentValue(enumU8AsString),
- object (ValueBuffer valueBuffer) => valueBuffer[49]);
+ object (ValueBuffer valueBuffer) => valueBuffer[50]);
enumU8AsString.SetPropertyIndexes(
- index: 49,
- originalValueIndex: 49,
+ index: 50,
+ originalValueIndex: 50,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2567,12 +2625,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
@float.SetAccessors(
float (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Float(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
float (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Float(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- float (InternalEntityEntry entry) => entry.ReadOriginalValue(@float, 50),
+ float (InternalEntityEntry entry) => entry.ReadOriginalValue(@float, 51),
float (InternalEntityEntry entry) => entry.GetCurrentValue(@float),
- object (ValueBuffer valueBuffer) => valueBuffer[50]);
+ object (ValueBuffer valueBuffer) => valueBuffer[51]);
@float.SetPropertyIndexes(
- index: 50,
- originalValueIndex: 50,
+ index: 51,
+ originalValueIndex: 51,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2609,12 +2667,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
floatArray.SetAccessors(
float[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.FloatArray(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
float[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.FloatArray(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- float[] (InternalEntityEntry entry) => entry.ReadOriginalValue(floatArray, 51),
+ float[] (InternalEntityEntry entry) => entry.ReadOriginalValue(floatArray, 52),
float[] (InternalEntityEntry entry) => entry.GetCurrentValue(floatArray),
- object (ValueBuffer valueBuffer) => valueBuffer[51]);
+ object (ValueBuffer valueBuffer) => valueBuffer[52]);
floatArray.SetPropertyIndexes(
- index: 51,
- originalValueIndex: 51,
+ index: 52,
+ originalValueIndex: 52,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2667,12 +2725,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
guid.SetAccessors(
Guid (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Guid(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
Guid (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Guid(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- Guid (InternalEntityEntry entry) => entry.ReadOriginalValue(guid, 52),
+ Guid (InternalEntityEntry entry) => entry.ReadOriginalValue(guid, 53),
Guid (InternalEntityEntry entry) => entry.GetCurrentValue(guid),
- object (ValueBuffer valueBuffer) => valueBuffer[52]);
+ object (ValueBuffer valueBuffer) => valueBuffer[53]);
guid.SetPropertyIndexes(
- index: 52,
- originalValueIndex: 52,
+ index: 53,
+ originalValueIndex: 53,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2717,12 +2775,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
guidToBytesConverterProperty.SetAccessors(
Guid (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.GuidToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
Guid (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.GuidToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- Guid (InternalEntityEntry entry) => entry.ReadOriginalValue(guidToBytesConverterProperty, 53),
+ Guid (InternalEntityEntry entry) => entry.ReadOriginalValue(guidToBytesConverterProperty, 54),
Guid (InternalEntityEntry entry) => entry.GetCurrentValue(guidToBytesConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[53]);
+ object (ValueBuffer valueBuffer) => valueBuffer[54]);
guidToBytesConverterProperty.SetPropertyIndexes(
- index: 53,
- originalValueIndex: 53,
+ index: 54,
+ originalValueIndex: 54,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2767,12 +2825,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
guidToStringConverterProperty.SetAccessors(
Guid (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.GuidToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
Guid (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.GuidToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- Guid (InternalEntityEntry entry) => entry.ReadOriginalValue(guidToStringConverterProperty, 54),
+ Guid (InternalEntityEntry entry) => entry.ReadOriginalValue(guidToStringConverterProperty, 55),
Guid (InternalEntityEntry entry) => entry.GetCurrentValue(guidToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[54]);
+ object (ValueBuffer valueBuffer) => valueBuffer[55]);
guidToStringConverterProperty.SetPropertyIndexes(
- index: 54,
- originalValueIndex: 54,
+ index: 55,
+ originalValueIndex: 55,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2816,12 +2874,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
iPAddress.SetAccessors(
IPAddress (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.IPAddress(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
IPAddress (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.IPAddress(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- IPAddress (InternalEntityEntry entry) => entry.ReadOriginalValue(iPAddress, 55),
+ IPAddress (InternalEntityEntry entry) => entry.ReadOriginalValue(iPAddress, 56),
IPAddress (InternalEntityEntry entry) => entry.GetCurrentValue(iPAddress),
- object (ValueBuffer valueBuffer) => valueBuffer[55]);
+ object (ValueBuffer valueBuffer) => valueBuffer[56]);
iPAddress.SetPropertyIndexes(
- index: 55,
- originalValueIndex: 55,
+ index: 56,
+ originalValueIndex: 56,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2865,12 +2923,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
iPAddressToBytesConverterProperty.SetAccessors(
IPAddress (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.IPAddressToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
IPAddress (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.IPAddressToBytesConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- IPAddress (InternalEntityEntry entry) => entry.ReadOriginalValue(iPAddressToBytesConverterProperty, 56),
+ IPAddress (InternalEntityEntry entry) => entry.ReadOriginalValue(iPAddressToBytesConverterProperty, 57),
IPAddress (InternalEntityEntry entry) => entry.GetCurrentValue(iPAddressToBytesConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[56]);
+ object (ValueBuffer valueBuffer) => valueBuffer[57]);
iPAddressToBytesConverterProperty.SetPropertyIndexes(
- index: 56,
- originalValueIndex: 56,
+ index: 57,
+ originalValueIndex: 57,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2914,12 +2972,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
iPAddressToStringConverterProperty.SetAccessors(
IPAddress (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.IPAddressToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
IPAddress (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.IPAddressToStringConverterProperty(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- IPAddress (InternalEntityEntry entry) => entry.ReadOriginalValue(iPAddressToStringConverterProperty, 57),
+ IPAddress (InternalEntityEntry entry) => entry.ReadOriginalValue(iPAddressToStringConverterProperty, 58),
IPAddress (InternalEntityEntry entry) => entry.GetCurrentValue(iPAddressToStringConverterProperty),
- object (ValueBuffer valueBuffer) => valueBuffer[57]);
+ object (ValueBuffer valueBuffer) => valueBuffer[58]);
iPAddressToStringConverterProperty.SetPropertyIndexes(
- index: 57,
- originalValueIndex: 57,
+ index: 58,
+ originalValueIndex: 58,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -2963,12 +3021,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
int16.SetAccessors(
short (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int16(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
short (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int16(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- short (InternalEntityEntry entry) => entry.ReadOriginalValue(int16, 58),
+ short (InternalEntityEntry entry) => entry.ReadOriginalValue(int16, 59),
short (InternalEntityEntry entry) => entry.GetCurrentValue(int16),
- object (ValueBuffer valueBuffer) => valueBuffer[58]);
+ object (ValueBuffer valueBuffer) => valueBuffer[59]);
int16.SetPropertyIndexes(
- index: 58,
- originalValueIndex: 58,
+ index: 59,
+ originalValueIndex: 59,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -3005,12 +3063,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
int16Array.SetAccessors(
short[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int16Array(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
short[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int16Array(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- short[] (InternalEntityEntry entry) => entry.ReadOriginalValue(int16Array, 59),
+ short[] (InternalEntityEntry entry) => entry.ReadOriginalValue(int16Array, 60),
short[] (InternalEntityEntry entry) => entry.GetCurrentValue(int16Array),
- object (ValueBuffer valueBuffer) => valueBuffer[59]);
+ object (ValueBuffer valueBuffer) => valueBuffer[60]);
int16Array.SetPropertyIndexes(
- index: 59,
- originalValueIndex: 59,
+ index: 60,
+ originalValueIndex: 60,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -3064,12 +3122,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
int32.SetAccessors(
int (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int32(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
int (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int32(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- int (InternalEntityEntry entry) => entry.ReadOriginalValue(int32, 60),
+ int (InternalEntityEntry entry) => entry.ReadOriginalValue(int32, 61),
int (InternalEntityEntry entry) => entry.GetCurrentValue(int32),
- object (ValueBuffer valueBuffer) => valueBuffer[60]);
+ object (ValueBuffer valueBuffer) => valueBuffer[61]);
int32.SetPropertyIndexes(
- index: 60,
- originalValueIndex: 60,
+ index: 61,
+ originalValueIndex: 61,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -3106,12 +3164,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
int32Array.SetAccessors(
int[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int32Array(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
int[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int32Array(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- int[] (InternalEntityEntry entry) => entry.ReadOriginalValue(int32Array, 61),
+ int[] (InternalEntityEntry entry) => entry.ReadOriginalValue(int32Array, 62),
int[] (InternalEntityEntry entry) => entry.GetCurrentValue(int32Array),
- object (ValueBuffer valueBuffer) => valueBuffer[61]);
+ object (ValueBuffer valueBuffer) => valueBuffer[62]);
int32Array.SetPropertyIndexes(
- index: 61,
- originalValueIndex: 61,
+ index: 62,
+ originalValueIndex: 62,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -3164,12 +3222,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
int32NestedCollection.SetAccessors(
int[][] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int32NestedCollection(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
int[][] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int32NestedCollection(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- int[][] (InternalEntityEntry entry) => entry.ReadOriginalValue(int32NestedCollection, 62),
+ int[][] (InternalEntityEntry entry) => entry.ReadOriginalValue(int32NestedCollection, 63),
int[][] (InternalEntityEntry entry) => entry.GetCurrentValue(int32NestedCollection),
- object (ValueBuffer valueBuffer) => valueBuffer[62]);
+ object (ValueBuffer valueBuffer) => valueBuffer[63]);
int32NestedCollection.SetPropertyIndexes(
- index: 62,
- originalValueIndex: 62,
+ index: 63,
+ originalValueIndex: 63,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -3222,6 +3280,64 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
clrType: typeof(int),
jsonValueReaderWriter: JsonInt32ReaderWriter.Instance)));
+ var int32ReadOnlyCollection = runtimeEntityType.AddProperty(
+ "Int32ReadOnlyCollection",
+ typeof(IReadOnlyCollection),
+ propertyInfo: typeof(CompiledModelTestBase.ManyTypes).GetProperty("Int32ReadOnlyCollection", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly),
+ fieldInfo: typeof(CompiledModelTestBase.ManyTypes).GetField("_int32ReadOnlyCollection", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly));
+ int32ReadOnlyCollection.SetGetter(
+ IReadOnlyCollection (CompiledModelTestBase.ManyTypes entity) => (ManyTypesUnsafeAccessors._int32ReadOnlyCollection(entity) == null ? null : ((IReadOnlyCollection)(ManyTypesUnsafeAccessors._int32ReadOnlyCollection(entity)))),
+ bool (CompiledModelTestBase.ManyTypes entity) => ManyTypesUnsafeAccessors._int32ReadOnlyCollection(entity) == null,
+ IReadOnlyCollection (CompiledModelTestBase.ManyTypes instance) => (ManyTypesUnsafeAccessors._int32ReadOnlyCollection(instance) == null ? null : ((IReadOnlyCollection)(ManyTypesUnsafeAccessors._int32ReadOnlyCollection(instance)))),
+ bool (CompiledModelTestBase.ManyTypes instance) => ManyTypesUnsafeAccessors._int32ReadOnlyCollection(instance) == null);
+ int32ReadOnlyCollection.SetSetter(
+ (CompiledModelTestBase.ManyTypes entity, IReadOnlyCollection value) => ManyTypesUnsafeAccessors._int32ReadOnlyCollection(entity) = ((List)(value)));
+ int32ReadOnlyCollection.SetMaterializationSetter(
+ (CompiledModelTestBase.ManyTypes entity, IReadOnlyCollection value) => ManyTypesUnsafeAccessors._int32ReadOnlyCollection(entity) = ((List)(value)));
+ int32ReadOnlyCollection.SetAccessors(
+ IReadOnlyCollection (InternalEntityEntry entry) => ((IReadOnlyCollection)(ManyTypesUnsafeAccessors._int32ReadOnlyCollection(((CompiledModelTestBase.ManyTypes)(entry.Entity))))),
+ IReadOnlyCollection (InternalEntityEntry entry) => ((IReadOnlyCollection)(ManyTypesUnsafeAccessors._int32ReadOnlyCollection(((CompiledModelTestBase.ManyTypes)(entry.Entity))))),
+ IReadOnlyCollection (InternalEntityEntry entry) => entry.ReadOriginalValue>(int32ReadOnlyCollection, 64),
+ IReadOnlyCollection (InternalEntityEntry entry) => entry.GetCurrentValue>(int32ReadOnlyCollection),
+ object (ValueBuffer valueBuffer) => valueBuffer[64]);
+ int32ReadOnlyCollection.SetPropertyIndexes(
+ index: 64,
+ originalValueIndex: 64,
+ shadowIndex: -1,
+ relationshipIndex: -1,
+ storeGenerationIndex: -1);
+ int32ReadOnlyCollection.TypeMapping = CosmosTypeMapping.Default.Clone(
+ comparer: new ListOfValueTypesComparer, int>(new ValueComparer(
+ bool (int v1, int v2) => v1 == v2,
+ int (int v) => v,
+ int (int v) => v)),
+ keyComparer: new ValueComparer>(
+ bool (IReadOnlyCollection v1, IReadOnlyCollection v2) => object.Equals(v1, v2),
+ int (IReadOnlyCollection v) => ((object)v).GetHashCode(),
+ IReadOnlyCollection (IReadOnlyCollection v) => v),
+ providerValueComparer: new ValueComparer>(
+ bool (IReadOnlyCollection v1, IReadOnlyCollection v2) => object.Equals(v1, v2),
+ int (IReadOnlyCollection v) => ((object)v).GetHashCode(),
+ IReadOnlyCollection (IReadOnlyCollection v) => v),
+ clrType: typeof(IReadOnlyCollection),
+ jsonValueReaderWriter: new JsonCollectionOfStructsReaderWriter, int>(
+ JsonInt32ReaderWriter.Instance),
+ elementMapping: CosmosTypeMapping.Default.Clone(
+ comparer: new ValueComparer(
+ bool (int v1, int v2) => v1 == v2,
+ int (int v) => v,
+ int (int v) => v),
+ keyComparer: new ValueComparer(
+ bool (int v1, int v2) => v1 == v2,
+ int (int v) => v,
+ int (int v) => v),
+ providerValueComparer: new ValueComparer(
+ bool (int v1, int v2) => v1 == v2,
+ int (int v) => v,
+ int (int v) => v),
+ clrType: typeof(int),
+ jsonValueReaderWriter: JsonInt32ReaderWriter.Instance));
+
var int64 = runtimeEntityType.AddProperty(
"Int64",
typeof(long),
@@ -3240,12 +3356,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
int64.SetAccessors(
long (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int64(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
long (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int64(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- long (InternalEntityEntry entry) => entry.ReadOriginalValue(int64, 63),
+ long (InternalEntityEntry entry) => entry.ReadOriginalValue(int64, 65),
long (InternalEntityEntry entry) => entry.GetCurrentValue(int64),
- object (ValueBuffer valueBuffer) => valueBuffer[63]);
+ object (ValueBuffer valueBuffer) => valueBuffer[65]);
int64.SetPropertyIndexes(
- index: 63,
- originalValueIndex: 63,
+ index: 65,
+ originalValueIndex: 65,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -3282,12 +3398,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
int64Array.SetAccessors(
long[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int64Array(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
long[] (InternalEntityEntry entry) => ManyTypesUnsafeAccessors.Int64Array(((CompiledModelTestBase.ManyTypes)(entry.Entity))),
- long[] (InternalEntityEntry entry) => entry.ReadOriginalValue(int64Array, 64),
+ long[] (InternalEntityEntry entry) => entry.ReadOriginalValue(int64Array, 66),
long[] (InternalEntityEntry entry) => entry.GetCurrentValue(int64Array),
- object (ValueBuffer valueBuffer) => valueBuffer[64]);
+ object (ValueBuffer valueBuffer) => valueBuffer[66]);
int64Array.SetPropertyIndexes(
- index: 64,
- originalValueIndex: 64,
+ index: 66,
+ originalValueIndex: 66,
shadowIndex: -1,
relationshipIndex: -1,
storeGenerationIndex: -1);
@@ -3340,12 +3456,12 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
int64NestedCollection.SetAccessors(
IList