예제 #1
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 protected override Expression CreateReadShadowValueExpression(ParameterExpression parameter, IPropertyBase property)
 => Expression.Convert(
     Expression.Call(
         parameter,
         ValueBuffer.GetValueMethod,
         Expression.Constant(property.GetIndex())),
     property.ClrType);
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public int GetValueBufferIndex([NotNull] IPropertyBase property)
 => _indexMap?[property.GetIndex()] ?? property.GetIndex();
예제 #3
0
 /// <summary>
 ///     Gets the index into the <see cref="ValueBuffer" /> where the property value can be found.
 /// </summary>
 /// <param name="property"> The property. </param>
 /// <returns> The index where its value can be found. </returns>
 public int GetValueBufferIndex(IPropertyBase property)
 => property.GetIndex();