DbReferenceEntry DbReferenceEntry DbReferenceEntry Class

Definition

A non-generic version of the DbReferenceEntry<TEntity,TProperty> class.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbReferenceEntry : System.Data.Entity.Infrastructure.DbMemberEntry
type DbReferenceEntry = class
    inherit DbMemberEntry
Public Class DbReferenceEntry
Inherits DbMemberEntry
Inheritance
DbReferenceEntryDbReferenceEntryDbReferenceEntry
Attributes

Properties

CurrentValue CurrentValue CurrentValue

Gets or sets the current value of the navigation property. The current value is the entity that the navigation property references.

EntityEntry EntityEntry EntityEntry

The DbEntityEntry to which this navigation property belongs.

IsLoaded IsLoaded IsLoaded

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

Name Name Name

Gets the property name.

Methods

Cast<TEntity,TProperty>() Cast<TEntity,TProperty>() Cast<TEntity,TProperty>()

Returns the equivalent generic DbReferenceEntry<TEntity,TProperty> object.

Equals(Object) Equals(Object) Equals(Object) Inherited from DbMemberEntry
GetHashCode() GetHashCode() GetHashCode() Inherited from DbMemberEntry
GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from DbMemberEntry)
GetValidationErrors() GetValidationErrors() GetValidationErrors()

Validates this property.

(Inherited from DbMemberEntry)
Load() Load() Load()

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.

LoadAsync() LoadAsync() LoadAsync()

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.

LoadAsync(CancellationToken) LoadAsync(CancellationToken) LoadAsync(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.

Query() Query() Query()

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.

ToString() ToString() ToString() Inherited from DbMemberEntry

Applies to