DbReferenceEntry<TEntity, TProperty> Class

 

Instances of this class are returned from the Reference method of DbEntityEntry<TEntity> and allow operations such as loading to be performed on the an entity's reference navigation properties.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Infrastructure.DbMemberEntry<TEntity, TProperty>
    System.Data.Entity.Infrastructure.DbReferenceEntry<TEntity, TProperty>

public class DbReferenceEntry<TEntity, TProperty> : DbMemberEntry<TEntity, TProperty>
where TEntity : class

Type Parameters

TEntity

The type of the entity to which this property belongs.

TProperty

The type of the property.

NameDescription
System_CAPS_pubpropertyCurrentValue

Gets or sets the current value of the navigation property. The current value is the entity that the navigation property references.(Overrides DbMemberEntry<TEntity, TProperty>.CurrentValue.)

System_CAPS_pubpropertyEntityEntry

The DbEntityEntry<TEntity> to which this navigation property belongs.(Overrides DbMemberEntry<TEntity, TProperty>.EntityEntry.)

System_CAPS_pubpropertyIsLoaded

Gets or sets a value indicating whether the entity has been loaded from the database.

System_CAPS_pubpropertyName

Gets the property name.(Overrides DbMemberEntry<TEntity, TProperty>.Name.)

NameDescription
System_CAPS_pubmethodEquals(Object)

Specifies whether the object is equal to the specified object.(Inherited from DbMemberEntry<TEntity, TProperty>.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Gets the hash code associated with the object.(Inherited from DbMemberEntry<TEntity, TProperty>.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from DbMemberEntry<TEntity, TProperty>.)

System_CAPS_pubmethodGetValidationErrors()

Validates this property.(Inherited from DbMemberEntry<TEntity, TProperty>.)

System_CAPS_pubmethodLoad()

Loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database.

System_CAPS_pubmethodLoadAsync()

Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database.

System_CAPS_pubmethodLoadAsync(CancellationToken)

Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodQuery()

Returns the query that would be used to load this entity from the database. The returned query can be modified using LINQ to perform filtering or operations in the database.

System_CAPS_pubmethodToString()

Returns a string representation of DbMemberEntry<TEntity, TProperty>.(Inherited from DbMemberEntry<TEntity, TProperty>.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticImplicit(DbReferenceEntry<TEntity, TProperty> to DbReferenceEntry)

Returns a new instance of the non-generic DbReferenceEntry class for the navigation property represented by this object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.