Share via


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
public class DbCollectionEntry : System.Data.Entity.Infrastructure.DbMemberEntry
type DbCollectionEntry = class
    inherit DbMemberEntry
Public Class DbCollectionEntry
Inherits DbMemberEntry
Inheritance
DbCollectionEntry
Attributes

Properties

CurrentValue

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

EntityEntry

The DbEntityEntry to which this navigation property belongs.

IsLoaded

Gets or sets a value indicating whether all entities of this collection have been loaded from the database.

Name

Gets the property name.

Methods

Cast<TEntity,TElement>()

Returns the equivalent generic DbCollectionEntry<TEntity,TElement> object.

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

Gets the Type of the current instance.

(Inherited from DbMemberEntry)
GetValidationErrors()

Validates this property.

(Inherited from DbMemberEntry)
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()

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)

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()

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() (Inherited from DbMemberEntry)

Applies to