DbCollectionEntry<TEntity,TElement> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instances of this class are returned from the Collection method of DbEntityEntry<TEntity> and allow operations such as loading to be performed on the an entity's collection navigation properties.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbCollectionEntry<TEntity,TElement> : System.Data.Entity.Infrastructure.DbMemberEntry<TEntity,System.Collections.Generic.ICollection<TElement>> where TEntity : class
public class DbCollectionEntry<TEntity,TElement> : System.Data.Entity.Infrastructure.DbMemberEntry<TEntity,System.Collections.Generic.ICollection<TElement>> where TEntity : class
type DbCollectionEntry<'Entity, 'Element (requires 'Entity : null)> = class
inherit DbMemberEntry<'Entity, ICollection<'Element> (requires 'Entity : null)>
Public Class DbCollectionEntry(Of TEntity, TElement)
Inherits DbMemberEntry(Of TEntity, ICollection(Of 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.
- Inheritance
- 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<TEntity> 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
Equals(Object) | (Inherited from DbMemberEntry<TEntity,TProperty>) |
GetHashCode() | (Inherited from DbMemberEntry<TEntity,TProperty>) |
GetType() |
Gets the Type of the current instance. (Inherited from DbMemberEntry<TEntity,TProperty>) |
GetValidationErrors() |
Validates this property. (Inherited from DbMemberEntry<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. |
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<TEntity,TProperty>) |
Operators
Implicit(DbCollectionEntry<TEntity,TElement> to DbCollectionEntry) |
Returns a new instance of the non-generic DbCollectionEntry class for the navigation property represented by this object. |
Applies to
Entity Framework