Exemplo n.º 1
0
 /// <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;
Exemplo n.º 2
0
 /// <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;
Exemplo n.º 3
0
 /// <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;
Exemplo n.º 4
0
 /// <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;
Exemplo n.º 5
0
 /// <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;
Exemplo n.º 6
0
 /// <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;
Exemplo n.º 8
0
 private static void TrySetIndexes(IPropertyBase propertyBase, PropertyIndexes indexes)
 => propertyBase.AsPropertyBase().PropertyIndexes = indexes;
Exemplo n.º 9
0
 public static PropertyInfo GetPropertyInfo([NotNull] this IPropertyBase propertyBase)
 => propertyBase.AsPropertyBase().PropertyInfo;
Exemplo n.º 10
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>
 public static Type GetClrType([NotNull] this IPropertyBase propertyBase)
 => propertyBase.AsPropertyBase().ClrType;