SQL - Extended
1.0.0
Pi-Con: Small utilities makes the difference
|
Query to an asynchronous database connection. More...
Public Member Functions | |
AsyncTableQuery (TableQuery< T > innerQuery) | |
Creates a new async query that uses given the synchronous query. More... | |
AsyncTableQuery< T > | Where (Expression< Func< T, bool >> predExpr) |
Filters the query based on a predicate. More... | |
AsyncTableQuery< T > | Skip (int n) |
Skips a given number of elements from the query and then yields the remainder. More... | |
AsyncTableQuery< T > | Take (int n) |
Yields a given number of elements from the query and then skips the remainder. More... | |
AsyncTableQuery< T > | OrderBy< U > (Expression< Func< T, U >> orderExpr) |
Order the query results according to a key. More... | |
AsyncTableQuery< T > | OrderByDescending< U > (Expression< Func< T, U >> orderExpr) |
Order the query results according to a key. More... | |
AsyncTableQuery< T > | ThenBy< U > (Expression< Func< T, U >> orderExpr) |
Order the query results according to a key. More... | |
AsyncTableQuery< T > | ThenByDescending< U > (Expression< Func< T, U >> orderExpr) |
Order the query results according to a key. More... | |
Task< List< T > > | ToListAsync () |
Queries the database and returns the results as a List. More... | |
Task< T[]> | ToArrayAsync () |
Queries the database and returns the results as an array. More... | |
Task< int > | CountAsync () |
Execute SELECT COUNT(*) on the query More... | |
Task< int > | CountAsync (Expression< Func< T, bool >> predExpr) |
Execute SELECT COUNT(*) on the query with an additional WHERE clause. More... | |
Task< T > | ElementAtAsync (int index) |
Returns the element at a given index More... | |
Task< T > | FirstAsync () |
Returns the first element of this query. More... | |
Task< T > | FirstOrDefaultAsync () |
Returns the first element of this query, or null if no element is found. More... | |
Task< T > | FirstAsync (Expression< Func< T, bool >> predExpr) |
Returns the first element of this query that matches the predicate. More... | |
Task< T > | FirstOrDefaultAsync (Expression< Func< T, bool >> predExpr) |
Returns the first element of this query that matches the predicate. More... | |
Task< int > | DeleteAsync (Expression< Func< T, bool >> predExpr) |
Delete all the rows that match this query and the given predicate. More... | |
Task< int > | DeleteAsync () |
Delete all the rows that match this query. More... | |
Query to an asynchronous database connection.
T | : | new() |
SQLite.AsyncTableQuery< T >.AsyncTableQuery | ( | TableQuery< T > | innerQuery | ) |
Creates a new async query that uses given the synchronous query.
Task<int> SQLite.AsyncTableQuery< T >.CountAsync | ( | ) |
Execute SELECT COUNT(*) on the query
Task<int> SQLite.AsyncTableQuery< T >.CountAsync | ( | Expression< Func< T, bool >> | predExpr | ) |
Execute SELECT COUNT(*) on the query with an additional WHERE clause.
Task<int> SQLite.AsyncTableQuery< T >.DeleteAsync | ( | ) |
Delete all the rows that match this query.
Task<int> SQLite.AsyncTableQuery< T >.DeleteAsync | ( | Expression< Func< T, bool >> | predExpr | ) |
Delete all the rows that match this query and the given predicate.
Task<T> SQLite.AsyncTableQuery< T >.ElementAtAsync | ( | int | index | ) |
Returns the element at a given index
Task<T> SQLite.AsyncTableQuery< T >.FirstAsync | ( | ) |
Returns the first element of this query.
Task<T> SQLite.AsyncTableQuery< T >.FirstAsync | ( | Expression< Func< T, bool >> | predExpr | ) |
Returns the first element of this query that matches the predicate.
Task<T> SQLite.AsyncTableQuery< T >.FirstOrDefaultAsync | ( | ) |
Returns the first element of this query, or null if no element is found.
Task<T> SQLite.AsyncTableQuery< T >.FirstOrDefaultAsync | ( | Expression< Func< T, bool >> | predExpr | ) |
Returns the first element of this query that matches the predicate.
AsyncTableQuery<T> SQLite.AsyncTableQuery< T >.OrderBy< U > | ( | Expression< Func< T, U >> | orderExpr | ) |
Order the query results according to a key.
AsyncTableQuery<T> SQLite.AsyncTableQuery< T >.OrderByDescending< U > | ( | Expression< Func< T, U >> | orderExpr | ) |
Order the query results according to a key.
AsyncTableQuery<T> SQLite.AsyncTableQuery< T >.Skip | ( | int | n | ) |
Skips a given number of elements from the query and then yields the remainder.
AsyncTableQuery<T> SQLite.AsyncTableQuery< T >.Take | ( | int | n | ) |
Yields a given number of elements from the query and then skips the remainder.
AsyncTableQuery<T> SQLite.AsyncTableQuery< T >.ThenBy< U > | ( | Expression< Func< T, U >> | orderExpr | ) |
Order the query results according to a key.
AsyncTableQuery<T> SQLite.AsyncTableQuery< T >.ThenByDescending< U > | ( | Expression< Func< T, U >> | orderExpr | ) |
Order the query results according to a key.
Task<T[]> SQLite.AsyncTableQuery< T >.ToArrayAsync | ( | ) |
Queries the database and returns the results as an array.
Task<List<T> > SQLite.AsyncTableQuery< T >.ToListAsync | ( | ) |
Queries the database and returns the results as a List.
AsyncTableQuery<T> SQLite.AsyncTableQuery< T >.Where | ( | Expression< Func< T, bool >> | predExpr | ) |
Filters the query based on a predicate.