DbCollectionEntry(Of TEntity, TElement) Class
Entity Framework 5.0
Instances of this class are returned from the Collection method of DbEntityEntry(Of TEntity) and allow operations such as loading to be performed on the entity's collection navigation properties.
System.Object
System.Data.Entity.Infrastructure.DbMemberEntry(Of TEntity, ICollection(Of TElement))
System.Data.Entity.Infrastructure.DbCollectionEntry(Of TEntity, TElement)
System.Data.Entity.Infrastructure.DbMemberEntry(Of TEntity, ICollection(Of TElement))
System.Data.Entity.Infrastructure.DbCollectionEntry(Of TEntity, TElement)
Namespace: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
'Declaration Public Class DbCollectionEntry(Of TEntity As Class, TElement) _ Inherits DbMemberEntry(Of TEntity, ICollection(Of TElement)) 'Usage Dim instance As DbCollectionEntry(Of TEntity, TElement)
Type Parameters
- TEntity
The type of the entity to which this property belongs.
- TElement
The type of the element in the collection of entities.
The DbCollectionEntry(Of TEntity, TElement) type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CurrentValue | Gets or sets the current value of the navigation property. The current value is the entity that the navigation property references. (Overrides DbMemberEntry(Of TEntity, TProperty).CurrentValue.) |
![]() | EntityEntry | The DbEntityEntry(Of TEntity) to which this navigation property belongs. (Overrides DbMemberEntry(Of TEntity, TProperty).EntityEntry.) |
![]() | IsLoaded | Gets a value indicating whether the collection of entities has been loaded from the database. |
![]() | Name | Gets the property name. (Overrides DbMemberEntry(Of TEntity, TProperty).Name.) |
| Name | Description | |
|---|---|---|
![]() | Equals | Returns whether the specified query is equal to the current query. (Inherited from DbMemberEntry(Of TEntity, TProperty).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Returns the hash function for the specified query. (Inherited from DbMemberEntry(Of TEntity, TProperty).) |
![]() | GetType | Gets the type for the current query. (Inherited from DbMemberEntry(Of TEntity, TProperty).) |
![]() | GetValidationErrors | Validates this property. (Inherited from DbMemberEntry(Of TEntity, TProperty).) |
![]() | 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. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | 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 | Returns a string representation of the database property values. (Inherited from DbMemberEntry(Of TEntity, TProperty).) |
| Name | Description | |
|---|---|---|
![]() ![]() | Widening(DbCollectionEntry(Of TEntity, TElement) to DbCollectionEntry) | Returns a new instance of the non-generic DbCollectionEntry class for the navigation property represented by this object. |
Show:
