Class TableQuery<T>
Inheritance
TableQuery<T>
Syntax
public class TableQuery<T> : BaseTableQuery, IEnumerable<T>, IEnumerable
Type Parameters
Constructors
TableQuery(SQLiteConnection)
Declaration
public TableQuery(SQLiteConnection conn)
Parameters
Properties
Connection
Declaration
public SQLiteConnection Connection { get; }
Property Value
Table
Declaration
public TableMapping Table { get; }
Property Value
Methods
Clone<U>()
Declaration
public TableQuery<U> Clone<U>()
Returns
Type Parameters
Count()
Declaration
Returns
Count(Expression<Func<T, Boolean>>)
Declaration
public int Count(Expression<Func<T, bool>> predExpr)
Parameters
Returns
Deferred()
Declaration
public TableQuery<T> Deferred()
Returns
ElementAt(Int32)
Declaration
public T ElementAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
First()
Declaration
Returns
FirstOrDefault()
Declaration
public T FirstOrDefault()
Returns
GenerateCommand(String)
Declaration
public SQLiteCommand GenerateCommand(string selectionList)
Parameters
Type |
Name |
Description |
String |
selectionList |
|
Returns
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Join<TInner, TKey, TResult>(TableQuery<TInner>, Expression<Func<T, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<T, TInner, TResult>>)
Declaration
public TableQuery<TResult> Join<TInner, TKey, TResult>(TableQuery<TInner> inner, Expression<Func<T, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<T, TInner, TResult>> resultSelector)
Parameters
Returns
Type Parameters
Name |
Description |
TInner |
|
TKey |
|
TResult |
|
OrderBy<U>(Expression<Func<T, U>>)
Declaration
public TableQuery<T> OrderBy<U>(Expression<Func<T, U>> orderExpr)
Parameters
Returns
Type Parameters
OrderByDescending<U>(Expression<Func<T, U>>)
Declaration
public TableQuery<T> OrderByDescending<U>(Expression<Func<T, U>> orderExpr)
Parameters
Returns
Type Parameters
Skip(Int32)
Declaration
public TableQuery<T> Skip(int n)
Parameters
Type |
Name |
Description |
Int32 |
n |
|
Returns
Take(Int32)
Declaration
public TableQuery<T> Take(int n)
Parameters
Type |
Name |
Description |
Int32 |
n |
|
Returns
ThenBy<U>(Expression<Func<T, U>>)
Declaration
public TableQuery<T> ThenBy<U>(Expression<Func<T, U>> orderExpr)
Parameters
Returns
Type Parameters
ThenByDescending<U>(Expression<Func<T, U>>)
Declaration
public TableQuery<T> ThenByDescending<U>(Expression<Func<T, U>> orderExpr)
Parameters
Returns
Type Parameters
Where(Expression<Func<T, Boolean>>)
Declaration
public TableQuery<T> Where(Expression<Func<T, bool>> predExpr)
Parameters
Returns
Extension Methods