DapperShadowCoreServices 类
Dapper计数扩展方法
public static class DapperShadowCoreServices
- 继承
-
objectDapperShadowCoreServices
方法
CountAsync(IDapperSelect, object?, CancellationToken)
计数
public static Task<int> CountAsync(this IDapperSelect select, object? param = null, CancellationToken token = default)
参数
selectIDapperSelect筛选
paramobject参数
tokenCancellationToken
返回
CountAsync(IDapperSource, object?, CancellationToken)
计数
public static Task<int> CountAsync(this IDapperSource source, object? param = null, CancellationToken token = default)
参数
sourceIDapperSourceparamobject参数
tokenCancellationToken
返回
CountAsync(ITableView, IExecutor, object?, CancellationToken)
计数
public static Task<int> CountAsync(this ITableView view, IExecutor executor, object? param = null, CancellationToken token = default)
参数
viewITableViewexecutorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
CountAsync(ISelect, IExecutor, object?, CancellationToken)
计数
public static Task<int> CountAsync(this ISelect select, IExecutor executor, object? param = null, CancellationToken token = default)
参数
selectISelect筛选
executorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
CountAsync(CountSelect, IExecutor, object?, CancellationToken)
计数
public static Task<int> CountAsync(this CountSelect select, IExecutor executor, object? param = null, CancellationToken token = default)
参数
selectCountSelect筛选
executorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
ExecuteAsync(IDapperExecute, object?, CancellationToken)
异步执行
public static Task<int> ExecuteAsync(this IDapperExecute sql, object? param = null, CancellationToken token = default)
参数
sqlIDapperExecutesql
paramobject参数
tokenCancellationToken
返回
ExecuteAsync(IExecuteSql, IExecutor, object?, CancellationToken)
异步执行
public static Task<int> ExecuteAsync(this IExecuteSql sql, IExecutor executor, object? param = null, CancellationToken token = default)
参数
sqlIExecuteSqlsql
executorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
FirstAsync<T>(IDapperSelect, object?, CancellationToken)
异步获取单条
public static Task<T?> FirstAsync<T>(this IDapperSelect select, object? param = null, CancellationToken token = default)
参数
selectIDapperSelect筛选
paramobject参数
tokenCancellationToken
返回
- Task<T>
类型参数
T
FirstAsync<T>(ISelect, IExecutor, object?, CancellationToken)
异步获取单条
public static Task<T?> FirstAsync<T>(this ISelect select, IExecutor executor, object? param = null, CancellationToken token = default)
参数
selectISelect筛选
executorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
- Task<T>
类型参数
T
From(IExecutor, string)
构造Dapper表
public static DapperTable From(this IExecutor executor, string tableName)
参数
返回
From(IDbConnection, ISqlEngine, string, bool, int)
构造Dapper表
public static DapperTable From(this IDbConnection connection, ISqlEngine engine, string tableName, bool buffered = true, int capacity = 128)
参数
connectionIDbConnection数据库连接
engineISqlEngine数据库引擎
tableNamestring表名
bufferedboolcapacityint
返回
GetAsync<T>(IDapperSelect, object?, CancellationToken)
获取异步列表
public static Task<IEnumerable<T>> GetAsync<T>(this IDapperSelect select, object? param = null, CancellationToken token = default)
参数
selectIDapperSelect筛选
paramobject参数
tokenCancellationToken
返回
- Task<IEnumerable<T>>
类型参数
T
GetAsync<T>(ISelect, IExecutor, object?, CancellationToken)
获取异步列表
public static Task<IEnumerable<T>> GetAsync<T>(this ISelect select, IExecutor executor, object? param = null, CancellationToken token = default)
参数
selectISelect筛选
executorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
- Task<IEnumerable<T>>
类型参数
T
LongCountAsync(IDapperSelect, object?, CancellationToken)
计数
public static Task<long> LongCountAsync(this IDapperSelect select, object? param = null, CancellationToken token = default)
参数
selectIDapperSelect筛选
paramobject参数
tokenCancellationToken
返回
LongCountAsync(IDapperSource, object?, CancellationToken)
计数
public static Task<long> LongCountAsync(this IDapperSource source, object? param = null, CancellationToken token = default)
参数
sourceIDapperSourceparamobject参数
tokenCancellationToken
返回
LongCountAsync(ITableView, IExecutor, object?, CancellationToken)
计数
public static Task<long> LongCountAsync(this ITableView view, IExecutor executor, object? param = null, CancellationToken token = default)
参数
viewITableViewexecutorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
LongCountAsync(ISelect, IExecutor, object?, CancellationToken)
计数
public static Task<long> LongCountAsync(this ISelect select, IExecutor executor, object? param = null, CancellationToken token = default)
参数
selectISelect筛选
executorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
LongCountAsync(CountSelect, IExecutor, object?, CancellationToken)
计数
public static Task<long> LongCountAsync(this CountSelect select, IExecutor executor, object? param = null, CancellationToken token = default)
参数
selectCountSelect筛选
executorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
ScalarAsync<T>(IDapperSingleSelect, object?, CancellationToken)
异步获取单值
public static Task<T?> ScalarAsync<T>(this IDapperSingleSelect select, object? param = null, CancellationToken token = default)
参数
selectIDapperSingleSelect筛选
paramobject参数
tokenCancellationToken
返回
- Task<T>
类型参数
T
ScalarAsync<T>(ISingleSelect, IExecutor, object?, CancellationToken)
异步获取单值
public static Task<T?> ScalarAsync<T>(this ISingleSelect select, IExecutor executor, object? param = null, CancellationToken token = default)
参数
selectISingleSelect筛选
executorIExecutor执行器
paramobject参数
tokenCancellationToken
返回
- Task<T>
类型参数
T