Class CloudStorageQueryable<T>
- Namespace
- CloudStorageORM.Infrastructure
- Assembly
- CloudStorageORM.dll
Queryable wrapper used to expose CloudStorageORM query results through LINQ.
public class CloudStorageQueryable<T> : IQueryable<T>, IEnumerable<T>, IQueryable, IEnumerable, IAsyncEnumerable<T>
Type Parameters
TElement type produced by the query.
- Inheritance
-
CloudStorageQueryable<T>
- Implements
-
IQueryable<T>IEnumerable<T>
- Inherited Members
Constructors
CloudStorageQueryable(CloudStorageQueryProvider)
Creates a new queryable with a root constant expression.
public CloudStorageQueryable(CloudStorageQueryProvider provider)
Parameters
providerCloudStorageQueryProviderQuery provider that executes this queryable.
CloudStorageQueryable(CloudStorageQueryProvider, Expression)
Creates a new queryable with an explicit expression tree.
public CloudStorageQueryable(CloudStorageQueryProvider provider, Expression expression)
Parameters
providerCloudStorageQueryProviderQuery provider that executes this queryable.
expressionExpressionExpression tree representing the query pipeline.
Properties
ElementType
Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed.
public Type ElementType { get; }
Property Value
- Type
A Type that represents the type of the element(s) that are returned when the expression tree associated with this object is executed.
Expression
Gets the expression tree that is associated with the instance of IQueryable.
public Expression Expression { get; }
Property Value
- Expression
The Expression that is associated with this instance of IQueryable.
Provider
Gets the query provider that is associated with this data source.
public IQueryProvider Provider { get; }
Property Value
- IQueryProvider
The IQueryProvider that is associated with this data source.
Methods
GetAsyncEnumerator(CancellationToken)
Returns an enumerator that iterates asynchronously through the collection.
public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA CancellationToken that may be used to cancel the asynchronous iteration.
Returns
- IAsyncEnumerator<T>
An enumerator that can be used to iterate asynchronously through the collection.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator that can be used to iterate through the collection.