TableQuery<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.
Represents a query against a Microsoft Azure table.
public class TableQuery<TElement> : System.Collections.Generic.IEnumerable<TElement>, System.Linq.IQueryable<TElement>
type TableQuery<'Element> = class
interface IQueryable<'Element>
interface seq<'Element>
interface IEnumerable
interface IQueryable
Public Class TableQuery(Of TElement)
Implements IEnumerable(Of TElement), IQueryable(Of TElement)
Type Parameters
- TElement
- Inheritance
-
TableQuery<TElement>
- Implements
Constructors
TableQuery<TElement>() |
Initializes a new instance of the TableQuery<TElement> class. |
Properties
ElementType |
Gets the type of the element(s) that are returned when the expression tree is executed. |
Expression |
Gets the expression tree. |
FilterString |
Gets or sets the filter expression to use in the table query. |
Provider |
Gets the query provider that is associated with this data source. |
SelectColumns |
Gets or sets the property names of the table entity properties to return when the table query is executed. |
TakeCount |
Gets or sets the number of entities the query returns specified in the table query. |
Methods
Copy() |
Shallow copy of TableQuery |
Execute(TableRequestOptions, OperationContext) |
Executes a query on a table. |
ExecuteSegmented(TableContinuationToken, TableRequestOptions, OperationContext) |
Executes a segmented query against a table. |
ExecuteSegmentedAsync(TableContinuationToken) |
Initiates an asynchronous operation to execute a query and return the results as a result segment. |
ExecuteSegmentedAsync(TableContinuationToken, CancellationToken) |
Initiates an asynchronous operation to execute a query and return the results as a result segment. |
ExecuteSegmentedAsync(TableContinuationToken, TableRequestOptions, OperationContext) |
Initiates an asynchronous operation to execute a query and return the results as a result segment. |
ExecuteSegmentedAsync(TableContinuationToken, TableRequestOptions, OperationContext, CancellationToken) |
Begins an asynchronous operation to execute a query and return the results as a result segment. |
GetEnumerator() |
Returns an enumerator that iterates through the TableQuery<TElement>. |
OrderBy(String) |
Define order by expression for the table query. Only applied to Cosmos Table Endpoint. |
OrderByDesc(String) |
Define order by desc expression for the table query. Only applied to Cosmos Table Endpoint. |
Select(IList<String>) |
Defines the property names of the table entity properties to return when the table query is executed. |
Take(Nullable<Int32>) |
Defines the upper bound for the number of entities the query returns. |
Where(String) |
Defines a filter expression for the table query. Only entities that satisfy the specified filter expression will be returned by the query. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Extension Methods
CountAsync<TSource>(IQueryable<TSource>, CancellationToken) |
Returns the number of elements in a sequence. |
MaxAsync<TSource>(IQueryable<TSource>, CancellationToken) |
Returns the maximum value in a generic IQueryable<T>. |
MinAsync<TSource>(IQueryable<TSource>, CancellationToken) |
Returns the minimum value in a generic IQueryable<T>. |
ToFeedIterator<T>(IQueryable<T>) |
This extension method gets the FeedIterator from LINQ IQueryable to execute query asynchronously. This will create the fresh new FeedIterator when called. |
ToQueryDefinition<T>(IQueryable<T>) |
This method generate query definition from LINQ query. |
ToStreamIterator<T>(IQueryable<T>) |
This extension method gets the FeedIterator from LINQ IQueryable to execute query asynchronously. This will create the fresh new FeedIterator when called. |
AsTableQuery<TElement>(IQueryable<TElement>) |
Specifies that a query be returned as a TableQuery object. |
Resolve<TElement,TResolved>(IQueryable<TElement>, EntityResolver<TResolved>) |
Specifies an entity resolver for the query. |
WithContext<TElement>(IQueryable<TElement>, OperationContext) |
Specifies an OperationContext for the query. |
WithOptions<TElement>(IQueryable<TElement>, TableRequestOptions) |
Specifies a set of TableRequestOptions with which the query will be executed. |
AsDocumentQuery<T>(IQueryable<T>) |
Converts an IQueryable to IDocumentQuery which supports pagination and asynchronous execution in the Azure Cosmos DB service. |
CountAsync<TSource>(IQueryable<TSource>, CancellationToken) |
Returns the number of elements in a sequence. |
MaxAsync<TSource>(IQueryable<TSource>, CancellationToken) |
Returns the maximum value in a generic IQueryable<T>. |
MinAsync<TSource>(IQueryable<TSource>, CancellationToken) |
Returns the minimum value in a generic IQueryable<T>. |
ToCommaSeparatedString<T>(IEnumerable<T>) |
Converts the elements of a collection to strings and concatenates them into a comma-separated list, or returns null for null or empty collections. |
Applies to
Azure SDK for .NET