IPropertyBase IPropertyBase Interface

Base type for navigation and scalar properties.

Syntax

Declaration

public interface IPropertyBase : IAnnotatablePublic Interface IPropertyBase
    Inherits IAnnotatable

Inherited Members

Item[String],
Item(String),
FindAnnotation(String),
FindAnnotation(String),
GetAnnotations()
GetAnnotations()

Properties summary

Gets the type of value that this property holds.

Gets the entity type that this property belongs to.

Gets the type that this property belongs to.

Gets the FieldInfo for the underlying CLR field that this object represents. This may be null for shadow properties or if the backing field for the property is not known.

Gets a value indicating whether this is a shadow property. A shadow property is one that does not have a corresponding property in the entity class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the entity class.

Gets the name of the property.

Gets the PropertyInfo for the underlying CLR property that this object represents. This may be null for shadow properties or properties mapped directly to fields.

Properties

  • ClrType
    ClrType

    Gets the type of value that this property holds.

    Type ClrType { get; }ReadOnly Property ClrType As Type

    Property Value

    • System.Type
      System.Type
  • DeclaringEntityType
    DeclaringEntityType

    Gets the entity type that this property belongs to.

    [Obsolete("Use DeclaringType, IProperty.DeclaringEntityType, or INavigation.DeclaringEntityType.")]
    IEntityType DeclaringEntityType { get; }<Obsolete("Use DeclaringType, IProperty.DeclaringEntityType, or INavigation.DeclaringEntityType.")>
    ReadOnly Property DeclaringEntityType As IEntityType

    Property Value

  • DeclaringType
    DeclaringType

    Gets the type that this property belongs to.

    ITypeBase DeclaringType { get; }ReadOnly Property DeclaringType As ITypeBase

    Property Value

  • FieldInfo
    FieldInfo

    Gets the FieldInfo for the underlying CLR field that this object represents. This may be null for shadow properties or if the backing field for the property is not known.

    FieldInfo FieldInfo { get; }ReadOnly Property FieldInfo As FieldInfo

    Property Value

    • System.Reflection.FieldInfo
      System.Reflection.FieldInfo
  • IsShadowProperty
    IsShadowProperty

    Gets a value indicating whether this is a shadow property. A shadow property is one that does not have a corresponding property in the entity class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the entity class.

    bool IsShadowProperty { get; }ReadOnly Property IsShadowProperty As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • Name
    Name

    Gets the name of the property.

    string Name { get; }ReadOnly Property Name As String

    Property Value

    • System.String
      System.String
  • PropertyInfo
    PropertyInfo

    Gets the PropertyInfo for the underlying CLR property that this object represents. This may be null for shadow properties or properties mapped directly to fields.

    PropertyInfo PropertyInfo { get; }ReadOnly Property PropertyInfo As PropertyInfo

    Property Value

    • System.Reflection.PropertyInfo
      System.Reflection.PropertyInfo

Details

Assembly

Microsoft.EntityFrameworkCore.dll