IDbSet<TEntity> Interface

 

An IDbSet<TEntity> represents the collection of all entities in the context, or that can be queried from the database, of a given type. DbSet<TEntity> is a concrete implementation of IDbSet.

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

[SuppressMessageAttribute("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", 
	Justification = "Name is intentional")]
public interface IDbSet<TEntity> : IQueryable<TEntity>, IEnumerable<TEntity>, 
	IQueryable, IEnumerable
where TEntity : class

Type Parameters

TEntity

The type that defines the set.

NameDescription
System_CAPS_pubpropertyElementType

(Inherited from IQueryable.)

System_CAPS_pubpropertyExpression

(Inherited from IQueryable.)

System_CAPS_pubpropertyLocal

Gets an ObservableCollection<T> that represents a local view of all Added, Unchanged, and Modified entities in this set. This local view will stay in sync as entities are added or removed from the context. Likewise, entities added to or removed from the local view will automatically be added to or removed from the context.

System_CAPS_pubpropertyProvider

(Inherited from IQueryable.)

NameDescription
System_CAPS_pubmethodAdd(TEntity)

Adds the given entity to the context underlying the set in the Added state such that it will be inserted into the database when SaveChanges is called.

System_CAPS_pubmethodAttach(TEntity)

Attaches the given entity to the context underlying the set. That is, the entity is placed into the context in the Unchanged state, just as if it had been read from the database.

System_CAPS_pubmethodCreate()

Creates a new instance of an entity for the type of this set. Note that this instance is NOT added or attached to the set. The instance returned will be a proxy if the underlying context is configured to create proxies and the entity type meets the requirements for creating a proxy.

System_CAPS_pubmethodCreate<TDerivedEntity>()

Creates a new instance of an entity for the type of this set or for a type derived from the type of this set. Note that this instance is NOT added or attached to the set. The instance returned will be a proxy if the underlying context is configured to create proxies and the entity type meets the requirements for creating a proxy.

System_CAPS_pubmethodFind(Object[])

Finds an entity with the given primary key values. If an entity with the given primary key values exists in the context, then it is returned immediately without making a request to the store. Otherwise, a request is made to the store for an entity with the given primary key values and this entity, if found, is attached to the context and returned. If no entity is found in the context or the store, then null is returned.

System_CAPS_pubmethodGetEnumerator()

(Inherited from IEnumerable<T>.)

System_CAPS_pubmethodRemove(TEntity)

Marks the given entity as Deleted such that it will be deleted from the database when SaveChanges is called. Note that the entity must exist in the context in some other state before this method is called.

NameDescription
System_CAPS_pubmethodAddOrUpdate<TEntity>(TEntity[])

Overloaded. Adds or updates entities by key when SaveChanges is called. Equivalent to an "upsert" operation from database terminology. This method can useful when seeding data using Migrations.(Defined by DbSetMigrationsExtensions.)

System_CAPS_pubmethodAddOrUpdate<TEntity>(Expression<Func<TEntity, Object>>, TEntity[])

Overloaded. Adds or updates entities by a custom identification expression when SaveChanges is called. Equivalent to an "upsert" operation from database terminology. This method can useful when seeding data using Migrations.(Defined by DbSetMigrationsExtensions.)

System_CAPS_pubmethodAllAsync<TEntity>(Expression<Func<TEntity, Boolean>>)

Overloaded. Asynchronously determines whether all the elements of a sequence satisfy a condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAllAsync<TEntity>(Expression<Func<TEntity, Boolean>>, CancellationToken)

Overloaded. Asynchronously determines whether all the elements of a sequence satisfy a condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAnyAsync<TEntity>()

Overloaded. Asynchronously determines whether a sequence contains any elements.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAnyAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously determines whether a sequence contains any elements.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAnyAsync<TEntity>(Expression<Func<TEntity, Boolean>>)

Overloaded. Asynchronously determines whether any element of a sequence satisfies a condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAnyAsync<TEntity>(Expression<Func<TEntity, Boolean>>, CancellationToken)

Overloaded. Asynchronously determines whether any element of a sequence satisfies a condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAsNoTracking()

Overloaded. Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. This method works by calling the AsNoTracking method of the underlying query object. If the underlying query object does not have an AsNoTracking method, then calling this method will have no affect.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAsNoTracking<TEntity>()

Overloaded. Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. This method works by calling the AsNoTracking method of the underlying query object. If the underlying query object does not have an AsNoTracking method, then calling this method will have no affect.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAsStreaming()

Obsolete.Overloaded. Returns a new query that will stream the results instead of buffering. This method works by calling the AsStreaming method of the underlying query object. If the underlying query object does not have an AsStreaming method, then calling this method will have no affect.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAsStreaming<TEntity>()

Obsolete.Overloaded. Returns a new query that will stream the results instead of buffering. This method works by calling the AsStreaming method of the underlying query object. If the underlying query object does not have an AsStreaming method, then calling this method will have no affect.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Decimal>>)

Overloaded. Asynchronously computes the average of a sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Decimal>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Double>>)

Overloaded. Asynchronously computes the average of a sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Double>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Int32>>)

Overloaded. Asynchronously computes the average of a sequence of Int32 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Int32>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of Int32 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Int64>>)

Overloaded. Asynchronously computes the average of a sequence of Int64 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Int64>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of Int64 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Decimal>>>)

Overloaded. Asynchronously computes the average of a sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Decimal>>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Double>>>)

Overloaded. Asynchronously computes the average of a sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Double>>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Int32>>>)

Overloaded. Asynchronously computes the average of a sequence of nullable Int32 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Int32>>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of nullable Int32 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Int64>>>)

Overloaded. Asynchronously computes the average of a sequence of nullable Int64 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Int64>>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of nullable Int64 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Single>>>)

Overloaded. Asynchronously computes the average of a sequence of nullable Single values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Nullable<Single>>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of nullable Single values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Single>>)

Overloaded. Asynchronously computes the average of a sequence of Single values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAverageAsync<TEntity>(Expression<Func<TEntity, Single>>, CancellationToken)

Overloaded. Asynchronously computes the average of a sequence of Single values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodContainsAsync<TEntity>(TEntity)

Overloaded. Asynchronously determines whether a sequence contains a specified element by using the default equality comparer.(Defined by QueryableExtensions.)

System_CAPS_pubmethodContainsAsync<TEntity>(TEntity, CancellationToken)

Overloaded. Asynchronously determines whether a sequence contains a specified element by using the default equality comparer.(Defined by QueryableExtensions.)

System_CAPS_pubmethodCountAsync<TEntity>()

Overloaded. Asynchronously returns the number of elements in a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodCountAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously returns the number of elements in a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodCountAsync<TEntity>(Expression<Func<TEntity, Boolean>>)

Overloaded. Asynchronously returns the number of elements in a sequence that satisfy a condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodCountAsync<TEntity>(Expression<Func<TEntity, Boolean>>, CancellationToken)

Overloaded. Asynchronously returns the number of elements in a sequence that satisfy a condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodFirstAsync<TEntity>()

Overloaded. Asynchronously returns the first element of a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodFirstAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously returns the first element of a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodFirstAsync<TEntity>(Expression<Func<TEntity, Boolean>>)

Overloaded. Asynchronously returns the first element of a sequence that satisfies a specified condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodFirstAsync<TEntity>(Expression<Func<TEntity, Boolean>>, CancellationToken)

Overloaded. Asynchronously returns the first element of a sequence that satisfies a specified condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodFirstOrDefaultAsync<TEntity>()

Overloaded. Asynchronously returns the first element of a sequence, or a default value if the sequence contains no elements.(Defined by QueryableExtensions.)

System_CAPS_pubmethodFirstOrDefaultAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously returns the first element of a sequence, or a default value if the sequence contains no elements.(Defined by QueryableExtensions.)

System_CAPS_pubmethodFirstOrDefaultAsync<TEntity>(Expression<Func<TEntity, Boolean>>)

Overloaded. Asynchronously returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.(Defined by QueryableExtensions.)

System_CAPS_pubmethodFirstOrDefaultAsync<TEntity>(Expression<Func<TEntity, Boolean>>, CancellationToken)

Overloaded. Asynchronously returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.(Defined by QueryableExtensions.)

System_CAPS_pubmethodForEachAsync(Action<Object>)

Overloaded. Asynchronously enumerates the query results and performs the specified action on each element.(Defined by QueryableExtensions.)

System_CAPS_pubmethodForEachAsync(Action<Object>, CancellationToken)

Overloaded. Asynchronously enumerates the query results and performs the specified action on each element.(Defined by QueryableExtensions.)

System_CAPS_pubmethodForEachAsync<TEntity>(Action<TEntity>)

Overloaded. Asynchronously enumerates the query results and performs the specified action on each element.(Defined by QueryableExtensions.)

System_CAPS_pubmethodForEachAsync<TEntity>(Action<TEntity>, CancellationToken)

Overloaded. Asynchronously enumerates the query results and performs the specified action on each element.(Defined by QueryableExtensions.)

System_CAPS_pubmethodInclude(String)

Overloaded. Specifies the related objects to include in the query results.(Defined by QueryableExtensions.)

System_CAPS_pubmethodInclude<TEntity>(String)

Overloaded. Specifies the related objects to include in the query results.(Defined by QueryableExtensions.)

System_CAPS_pubmethodInclude<TEntity, TProperty>(Expression<Func<TEntity, TProperty>>)

Overloaded. Specifies the related objects to include in the query results.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLoad()

Enumerates the query such that for server queries such as those of DbSet<TEntity>, ObjectSet<TEntity> , ObjectQuery<T>, and others the results of the query will be loaded into the associated DbContext , ObjectContext or other cache on the client. This is equivalent to calling ToList and then throwing away the list without the overhead of actually creating the list.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLoadAsync()

Overloaded. Asynchronously enumerates the query such that for server queries such as those of DbSet<TEntity>, ObjectSet<TEntity> , ObjectQuery<T>, and others the results of the query will be loaded into the associated DbContext , ObjectContext or other cache on the client. This is equivalent to calling ToList and then throwing away the list without the overhead of actually creating the list.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLoadAsync(CancellationToken)

Overloaded. Asynchronously enumerates the query such that for server queries such as those of DbSet<TEntity>, ObjectSet<TEntity> , ObjectQuery<T>, and others the results of the query will be loaded into the associated DbContext , ObjectContext or other cache on the client. This is equivalent to calling ToList and then throwing away the list without the overhead of actually creating the list.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLongCountAsync<TEntity>()

Overloaded. Asynchronously returns an Int64 that represents the total number of elements in a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLongCountAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously returns an Int64 that represents the total number of elements in a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLongCountAsync<TEntity>(Expression<Func<TEntity, Boolean>>)

Overloaded. Asynchronously returns an Int64 that represents the number of elements in a sequence that satisfy a condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLongCountAsync<TEntity>(Expression<Func<TEntity, Boolean>>, CancellationToken)

Overloaded. Asynchronously returns an Int64 that represents the number of elements in a sequence that satisfy a condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodMaxAsync<TEntity>()

Overloaded. Asynchronously returns the maximum value of a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodMaxAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously returns the maximum value of a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodMaxAsync<TEntity, TResult>(Expression<Func<TEntity, TResult>>)

Overloaded. Asynchronously invokes a projection function on each element of a sequence and returns the maximum resulting value.(Defined by QueryableExtensions.)

System_CAPS_pubmethodMaxAsync<TEntity, TResult>(Expression<Func<TEntity, TResult>>, CancellationToken)

Overloaded. Asynchronously invokes a projection function on each element of a sequence and returns the maximum resulting value.(Defined by QueryableExtensions.)

System_CAPS_pubmethodMinAsync<TEntity>()

Overloaded. Asynchronously returns the minimum value of a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodMinAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously returns the minimum value of a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodMinAsync<TEntity, TResult>(Expression<Func<TEntity, TResult>>)

Overloaded. Asynchronously invokes a projection function on each element of a sequence and returns the minimum resulting value.(Defined by QueryableExtensions.)

System_CAPS_pubmethodMinAsync<TEntity, TResult>(Expression<Func<TEntity, TResult>>, CancellationToken)

Overloaded. Asynchronously invokes a projection function on each element of a sequence and returns the minimum resulting value.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSingleAsync<TEntity>()

Overloaded. Asynchronously returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSingleAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSingleAsync<TEntity>(Expression<Func<TEntity, Boolean>>)

Overloaded. Asynchronously returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSingleAsync<TEntity>(Expression<Func<TEntity, Boolean>>, CancellationToken)

Overloaded. Asynchronously returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSingleOrDefaultAsync<TEntity>()

Overloaded. Asynchronously returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSingleOrDefaultAsync<TEntity>(CancellationToken)

Overloaded. Asynchronously returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSingleOrDefaultAsync<TEntity>(Expression<Func<TEntity, Boolean>>)

Overloaded. Asynchronously returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSingleOrDefaultAsync<TEntity>(Expression<Func<TEntity, Boolean>>, CancellationToken)

Overloaded. Asynchronously returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSkip<TEntity>(Expression<Func<Int32>>)

Bypasses a specified number of elements in a sequence and then returns the remaining elements.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Decimal>>)

Overloaded. Asynchronously computes the sum of the sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Decimal>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Double>>)

Overloaded. Asynchronously computes the sum of the sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Double>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Int32>>)

Overloaded. Asynchronously computes the sum of the sequence of Int32 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Int32>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of Int32 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Int64>>)

Overloaded. Asynchronously computes the sum of the sequence of Int64 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Int64>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of Int64 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Decimal>>>)

Overloaded. Asynchronously computes the sum of the sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Decimal>>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Double>>>)

Overloaded. Asynchronously computes the sum of the sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Double>>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Int32>>>)

Overloaded. Asynchronously computes the sum of the sequence of nullable Int32 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Int32>>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of nullable Int32 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Int64>>>)

Overloaded. Asynchronously computes the sum of the sequence of nullable Int64 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Int64>>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of nullable Int64 values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Single>>>)

Overloaded. Asynchronously computes the sum of the sequence of nullable Single values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Nullable<Single>>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of nullable Single values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Single>>)

Overloaded. Asynchronously computes the sum of the sequence of Single values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodSumAsync<TEntity>(Expression<Func<TEntity, Single>>, CancellationToken)

Overloaded. Asynchronously computes the sum of the sequence of Single values that is obtained by invoking a projection function on each element of the input sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodTake<TEntity>(Expression<Func<Int32>>)

Returns a specified number of contiguous elements from the start of a sequence.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToArrayAsync<TEntity>()

Overloaded. Creates an array from an IQueryable<T> by enumerating it asynchronously.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToArrayAsync<TEntity>(CancellationToken)

Overloaded. Creates an array from an IQueryable<T> by enumerating it asynchronously.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToDictionaryAsync<TEntity, TKey>(Func<TEntity, TKey>)

Overloaded. Creates a Dictionary<TKey, TValue> from an IQueryable<T> by enumerating it asynchronously according to a specified key selector function.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToDictionaryAsync<TEntity, TKey>(Func<TEntity, TKey>, CancellationToken)

Overloaded. Creates a Dictionary<TKey, TValue> from an IQueryable<T> by enumerating it asynchronously according to a specified key selector function.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToDictionaryAsync<TEntity, TKey>(Func<TEntity, TKey>, IEqualityComparer<TKey>)

Overloaded. Creates a Dictionary<TKey, TValue> from an IQueryable<T> by enumerating it asynchronously according to a specified key selector function and a comparer.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToDictionaryAsync<TEntity, TKey>(Func<TEntity, TKey>, IEqualityComparer<TKey>, CancellationToken)

Overloaded. Creates a Dictionary<TKey, TValue> from an IQueryable<T> by enumerating it asynchronously according to a specified key selector function and a comparer.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToDictionaryAsync<TEntity, TKey, TElement>(Func<TEntity, TKey>, Func<TEntity, TElement>)

Overloaded. Creates a Dictionary<TKey, TValue> from an IQueryable<T> by enumerating it asynchronously according to a specified key selector and an element selector function.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToDictionaryAsync<TEntity, TKey, TElement>(Func<TEntity, TKey>, Func<TEntity, TElement>, CancellationToken)

Overloaded. Creates a Dictionary<TKey, TValue> from an IQueryable<T> by enumerating it asynchronously according to a specified key selector and an element selector function.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToDictionaryAsync<TEntity, TKey, TElement>(Func<TEntity, TKey>, Func<TEntity, TElement>, IEqualityComparer<TKey>)

Overloaded. Creates a Dictionary<TKey, TValue> from an IQueryable<T> by enumerating it asynchronously according to a specified key selector function, a comparer, and an element selector function.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToDictionaryAsync<TEntity, TKey, TElement>(Func<TEntity, TKey>, Func<TEntity, TElement>, IEqualityComparer<TKey>, CancellationToken)

Overloaded. Creates a Dictionary<TKey, TValue> from an IQueryable<T> by enumerating it asynchronously according to a specified key selector function, a comparer, and an element selector function.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToListAsync()

Overloaded. Creates a List<T> from an IQueryable by enumerating it asynchronously.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToListAsync(CancellationToken)

Overloaded. Creates a List<T> from an IQueryable by enumerating it asynchronously.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToListAsync<TEntity>()

Overloaded. Creates a List<T> from an IQueryable<T> by enumerating it asynchronously.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToListAsync<TEntity>(CancellationToken)

Overloaded. Creates a List<T> from an IQueryable<T> by enumerating it asynchronously.(Defined by QueryableExtensions.)

IDbSet<TEntity> was originally intended to allow creation of test doubles (mocks or fakes) for DbSet<TEntity>. However, this approach has issues in that adding new members to an interface breaks existing code that already implements the interface without the new members. Therefore, starting with EF6, no new members will be added to this interface and it is recommended that DbSet<TEntity> be used as the base class for test doubles.

Return to top
Show: