DbCollectionEntry DbCollectionEntry DbCollectionEntry Class

Definition

A non-generic version of the DbCollectionEntry<TEntity,TElement> class.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbCollectionEntry : System.Data.Entity.Infrastructure.DbMemberEntry
type DbCollectionEntry = class
    inherit DbMemberEntry
Public Class DbCollectionEntry
Inherits DbMemberEntry
Inheritance
DbCollectionEntryDbCollectionEntryDbCollectionEntry
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 all entities of this collection have been loaded from the database.

Name Name Name

Gets the property name.

Methods

Cast<TEntity,TElement>() Cast<TEntity,TElement>() Cast<TEntity,TElement>()

Returns the equivalent generic DbCollectionEntry<TEntity,TElement> 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 collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database.

LoadAsync() LoadAsync() LoadAsync()

Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database.

LoadAsync(CancellationToken) LoadAsync(CancellationToken) LoadAsync(CancellationToken)

Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database.

Query() Query() Query()

Returns the query that would be used to load this collection from the database. The returned query can be modified using LINQ to perform filtering or operations in the database, such as counting the number of entities in the collection in the database without actually loading them.

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

Applies to