DbCollectionEntry Class

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


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

public class DbCollectionEntry : DbMemberEntry

The DbCollectionEntry type exposes the following members.

Public propertyCurrentValueGets or sets the current value of the navigation property. The current value is the entity that the navigation property references. (Overrides DbMemberEntry.CurrentValue.)
Public propertyEntityEntryThe DbEntityEntry to which this navigation property belongs. (Overrides DbMemberEntry.EntityEntry.)
Public propertyIsLoadedGets a value indicating whether the collection of entities has been loaded from the database.
Public propertyNameGets the property name. (Overrides DbMemberEntry.Name.)

Public methodCast<TEntity, TElement>Returns the equivalent generic DbCollectionEntry<TEntity, TElement> object.
Public methodEqualsReturns whether the specified entry is equal to the current query. (Inherited from DbMemberEntry.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash function for the specified entry. (Inherited from DbMemberEntry.)
Public methodGetTypeGets the type for the current entry. (Inherited from DbMemberEntry.)
Public methodGetValidationErrorsValidates this property. (Inherited from DbMemberEntry.)
Public methodLoadLoads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodQueryReturns 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.
Public methodToStringReturns a string representation of the database property values. (Inherited from DbMemberEntry.)

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