public T GetValue <T>(InternalEntityEntry entry, IProperty property, int index) { if (index == -1) { throw new InvalidOperationException( CoreStrings.OriginalValueNotTracked(property.Name, property.DeclaringEntityType.DisplayName())); } return(IsEmpty ? entry.GetCurrentValue <T>(property) : _values.GetValue <T>(index)); }
public T GetValue<T>(InternalEntityEntry entry, IPropertyBase propertyBase, int index) => IsEmpty ? entry.GetCurrentValue<T>(propertyBase) : _values.GetValue<T>(index);
public T GetValue <T>(int index) => IsEmpty ? default : _values.GetValue <T>(index);
/// <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 T ReadShadowValue <T>(int shadowIndex) => _propertyValues.GetValue <T>(shadowIndex);
protected internal override T ReadShadowValue <T>(int shadowIndex) => _shadowValues.GetValue <T>(shadowIndex);