IPropertyBase IPropertyBase Interface

Definition

Base type for navigation and scalar properties.

public interface IPropertyBase : IAnnotatable
Public Interface IPropertyBase
    Inherits IAnnotatable

Properties

ClrType ClrType

Gets the type of value that this property holds.

Type ClrType { get; }
ReadOnly Property ClrType As Type
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

DeclaringType DeclaringType

Gets the type that this property belongs to.

ITypeBase DeclaringType { get; }
ReadOnly Property DeclaringType As ITypeBase

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
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
Value
System.Boolean System.Boolean

Item[String] Item(String)

Gets the value annotation with the given name, returning null if it does not exist.

(Inherited from IAnnotatable)

Name Name

Gets the name of the property.

string Name { get; }
ReadOnly Property Name As String
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
Value
System.Reflection.PropertyInfo System.Reflection.PropertyInfo

Methods

FindAnnotation(String) FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from IAnnotatable)

GetAnnotations() GetAnnotations()

Gets all annotations on the current object.

(Inherited from IAnnotatable)