Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Dapper
提交
6ec3804f
D
Dapper
项目概览
int
/
Dapper
11 个月 前同步成功
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dapper
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
6ec3804f
编写于
1月 09, 2021
作者:
N
Nick Craver
提交者:
GitHub
1月 09, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1604 from GitHubPang/main
Fix typos
上级
0561b616
e0f04e95
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
18 deletion
+18
-18
Dapper.Contrib/SqlMapperExtensions.cs
Dapper.Contrib/SqlMapperExtensions.cs
+2
-2
Dapper.Rainbow/Database.Async.cs
Dapper.Rainbow/Database.Async.cs
+4
-4
Dapper/SqlMapper.Async.cs
Dapper/SqlMapper.Async.cs
+12
-12
未找到文件。
Dapper.Contrib/SqlMapperExtensions.cs
浏览文件 @
6ec3804f
...
...
@@ -47,7 +47,7 @@ public interface ITableNameMapper
/// <param name="connection">The connection to get a database type name from.</param>
public
delegate
string
GetDatabaseTypeDelegate
(
IDbConnection
connection
);
/// <summary>
/// The function to get a
a
table name from a given <see cref="Type"/>
/// The function to get a table name from a given <see cref="Type"/>
/// </summary>
/// <param name="type">The <see cref="Type"/> to get a table name for.</param>
public
delegate
string
TableNameMapperDelegate
(
Type
type
);
...
...
@@ -730,7 +730,7 @@ public class KeyAttribute : Attribute
}
/// <summary>
/// Specifies that this field is a explicitly set primary key in the database
/// Specifies that this field is a
n
explicitly set primary key in the database
/// </summary>
[
AttributeUsage
(
AttributeTargets
.
Property
)]
public
class
ExplicitKeyAttribute
:
Attribute
...
...
Dapper.Rainbow/Database.Async.cs
浏览文件 @
6ec3804f
...
...
@@ -111,7 +111,7 @@ public Task<int> UpdateAsync(TId id, dynamic data)
_connection
.
QueryFirstOrDefaultAsync
<
T
>(
sql
,
param
as
object
,
_transaction
,
_commandTimeout
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 2 input types.
/// Perform a
n
asynchronous multi-mapping query with 2 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -129,7 +129,7 @@ public Task<int> UpdateAsync(TId id, dynamic data)
_connection
.
QueryAsync
(
sql
,
map
,
param
as
object
,
transaction
,
buffered
,
splitOn
,
commandTimeout
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 3 input types.
/// Perform a
n
asynchronous multi-mapping query with 3 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -148,7 +148,7 @@ public Task<int> UpdateAsync(TId id, dynamic data)
_connection
.
QueryAsync
(
sql
,
map
,
param
as
object
,
transaction
,
buffered
,
splitOn
,
commandTimeout
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 4 input types.
/// Perform a
n
asynchronous multi-mapping query with 4 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -168,7 +168,7 @@ public Task<int> UpdateAsync(TId id, dynamic data)
_connection
.
QueryAsync
(
sql
,
map
,
param
as
object
,
transaction
,
buffered
,
splitOn
,
commandTimeout
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 5 input types.
/// Perform a
n
asynchronous multi-mapping query with 5 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
Dapper/SqlMapper.Async.cs
浏览文件 @
6ec3804f
...
...
@@ -654,7 +654,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
}
/// <summary>
/// Perform a asynchronous multi-mapping query with 2 input types.
/// Perform a
n
asynchronous multi-mapping query with 2 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -675,7 +675,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
new
CommandDefinition
(
sql
,
param
,
transaction
,
commandTimeout
,
commandType
,
buffered
?
CommandFlags
.
Buffered
:
CommandFlags
.
None
,
default
),
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 2 input types.
/// Perform a
n
asynchronous multi-mapping query with 2 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -690,7 +690,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
MultiMapAsync
<
TFirst
,
TSecond
,
DontMap
,
DontMap
,
DontMap
,
DontMap
,
DontMap
,
TReturn
>(
cnn
,
command
,
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 3 input types.
/// Perform a
n
asynchronous multi-mapping query with 3 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -712,7 +712,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
new
CommandDefinition
(
sql
,
param
,
transaction
,
commandTimeout
,
commandType
,
buffered
?
CommandFlags
.
Buffered
:
CommandFlags
.
None
,
default
),
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 3 input types.
/// Perform a
n
asynchronous multi-mapping query with 3 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -728,7 +728,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
MultiMapAsync
<
TFirst
,
TSecond
,
TThird
,
DontMap
,
DontMap
,
DontMap
,
DontMap
,
TReturn
>(
cnn
,
command
,
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 4 input types.
/// Perform a
n
asynchronous multi-mapping query with 4 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -751,7 +751,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
new
CommandDefinition
(
sql
,
param
,
transaction
,
commandTimeout
,
commandType
,
buffered
?
CommandFlags
.
Buffered
:
CommandFlags
.
None
,
default
),
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 4 input types.
/// Perform a
n
asynchronous multi-mapping query with 4 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -768,7 +768,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
MultiMapAsync
<
TFirst
,
TSecond
,
TThird
,
TFourth
,
DontMap
,
DontMap
,
DontMap
,
TReturn
>(
cnn
,
command
,
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 5 input types.
/// Perform a
n
asynchronous multi-mapping query with 5 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -792,7 +792,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
new
CommandDefinition
(
sql
,
param
,
transaction
,
commandTimeout
,
commandType
,
buffered
?
CommandFlags
.
Buffered
:
CommandFlags
.
None
,
default
),
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 5 input types.
/// Perform a
n
asynchronous multi-mapping query with 5 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -810,7 +810,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
MultiMapAsync
<
TFirst
,
TSecond
,
TThird
,
TFourth
,
TFifth
,
DontMap
,
DontMap
,
TReturn
>(
cnn
,
command
,
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 6 input types.
/// Perform a
n
asynchronous multi-mapping query with 6 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -835,7 +835,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
new
CommandDefinition
(
sql
,
param
,
transaction
,
commandTimeout
,
commandType
,
buffered
?
CommandFlags
.
Buffered
:
CommandFlags
.
None
,
default
),
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 6 input types.
/// Perform a
n
asynchronous multi-mapping query with 6 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -854,7 +854,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
MultiMapAsync
<
TFirst
,
TSecond
,
TThird
,
TFourth
,
TFifth
,
TSixth
,
DontMap
,
TReturn
>(
cnn
,
command
,
map
,
splitOn
);
/// <summary>
/// Perform a asynchronous multi-mapping query with 7 input types.
/// Perform a
n
asynchronous multi-mapping query with 7 input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TFirst">The first type in the recordset.</typeparam>
...
...
@@ -921,7 +921,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
}
/// <summary>
/// Perform a asynchronous multi-mapping query with an arbitrary number of input types.
/// Perform a
n
asynchronous multi-mapping query with an arbitrary number of input types.
/// This returns a single type, combined from the raw types via <paramref name="map"/>.
/// </summary>
/// <typeparam name="TReturn">The combined type to return.</typeparam>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录