/// <summary> /// 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. /// </summary> public static IClrPropertyGetter GetGetter([NotNull] this IPropertyBase propertyBase) => propertyBase.AsPropertyBase().Getter;
/// <summary> /// 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. /// </summary> public static void SetIndexes([NotNull] this IPropertyBase propertyBase, [CanBeNull] PropertyIndexes indexes) => propertyBase.AsPropertyBase().PropertyIndexes = indexes;
/// <summary> /// 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. /// </summary> public static PropertyAccessors GetPropertyAccessors([NotNull] this IPropertyBase propertyBase) => propertyBase.AsPropertyBase().Accessors;
/// <summary> /// 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. /// </summary> public static IComparer <IUpdateEntry> GetCurrentValueComparer([NotNull] this IPropertyBase propertyBase) => propertyBase.AsPropertyBase().CurrentValueComparer;
/// <summary> /// 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. /// </summary> public static PropertyIndexes GetPropertyIndexes([NotNull] this IPropertyBase propertyBase) => propertyBase.AsPropertyBase()?.PropertyIndexes;
/// <summary> /// <para> /// Gets a <see cref="IClrPropertySetter" /> for writing the value of this property during materialization /// of a query. /// </para> /// <para> /// Note that it is an error to call this method for a shadow property (<see cref="IsShadowProperty" />) since /// such a property has no associated <see cref="MemberInfo" />. /// </para> /// </summary> /// <param name="propertyBase"> The property. </param> /// <returns> The accessor. </returns> public static IClrPropertySetter GetMaterializationSetter([NotNull] this IPropertyBase propertyBase) => propertyBase.AsPropertyBase().MaterializationSetter;
private static void TrySetIndexes(IPropertyBase propertyBase, PropertyIndexes indexes) => propertyBase.AsPropertyBase().PropertyIndexes = indexes;
public static PropertyInfo GetPropertyInfo([NotNull] this IPropertyBase propertyBase) => propertyBase.AsPropertyBase().PropertyInfo;
/// <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 static Type GetClrType([NotNull] this IPropertyBase propertyBase) => propertyBase.AsPropertyBase().ClrType;