Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Dapper
提交
51192328
D
Dapper
项目概览
int
/
Dapper
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
51192328
编写于
3月 18, 2015
作者:
M
Marc Gravell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Package updates
上级
4997b176
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
26 addition
and
23 deletion
+26
-23
Dapper NET40/Properties/AssemblyInfo.cs
Dapper NET40/Properties/AssemblyInfo.cs
+2
-2
Dapper NET40/SqlMapper.cs
Dapper NET40/SqlMapper.cs
+3
-3
Dapper NET45/SqlMapperAsync.cs
Dapper NET45/SqlMapperAsync.cs
+2
-2
Dapper.Contrib.Tests/Properties/AssemblyInfo.cs
Dapper.Contrib.Tests/Properties/AssemblyInfo.cs
+2
-2
Dapper.Contrib/Properties/AssemblyInfo.cs
Dapper.Contrib/Properties/AssemblyInfo.cs
+2
-2
Dapper.EntityFramework NET45/DbGeographyHandler.cs
Dapper.EntityFramework NET45/DbGeographyHandler.cs
+1
-1
Dapper.EntityFramework NET45/DbGeometryHandler.cs
Dapper.EntityFramework NET45/DbGeometryHandler.cs
+1
-1
Dapper.SqlBuilder/Properties/AssemblyInfo.cs
Dapper.SqlBuilder/Properties/AssemblyInfo.cs
+2
-2
Dapper.StrongName.nuspec
Dapper.StrongName.nuspec
+1
-1
DapperTests NET35/Properties/AssemblyInfo.cs
DapperTests NET35/Properties/AssemblyInfo.cs
+2
-2
DapperTests NET45/Properties/AssemblyInfo.cs
DapperTests NET45/Properties/AssemblyInfo.cs
+2
-2
Tests/Properties/AssemblyInfo.cs
Tests/Properties/AssemblyInfo.cs
+2
-2
Tests/Tests.cs
Tests/Tests.cs
+2
-0
dapper.nuspec
dapper.nuspec
+2
-1
未找到文件。
Dapper NET40/Properties/AssemblyInfo.cs
浏览文件 @
51192328
...
...
@@ -32,5 +32,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
9
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
9
.0.0"
)]
Dapper NET40/SqlMapper.cs
浏览文件 @
51192328
...
...
@@ -897,13 +897,13 @@ internal static DbType LookupDbType(Type type, string name, bool demand, out ITy
switch
(
type
.
FullName
)
{
case
"Microsoft.SqlServer.Types.SqlGeography"
:
AddTypeHandler
(
type
,
handler
=
new
UdtTypeHandler
(
"
GEOGRAPHY
"
));
AddTypeHandler
(
type
,
handler
=
new
UdtTypeHandler
(
"
geography
"
));
return
DbType
.
Object
;
case
"Microsoft.SqlServer.Types.SqlGeometry"
:
AddTypeHandler
(
type
,
handler
=
new
UdtTypeHandler
(
"
GEOMETRY
"
));
AddTypeHandler
(
type
,
handler
=
new
UdtTypeHandler
(
"
geometry
"
));
return
DbType
.
Object
;
case
"Microsoft.SqlServer.Types.SqlHierarchyId"
:
AddTypeHandler
(
type
,
handler
=
new
UdtTypeHandler
(
"
HIERARCHYID
"
));
AddTypeHandler
(
type
,
handler
=
new
UdtTypeHandler
(
"
hierarchyid
"
));
return
DbType
.
Object
;
}
if
(
demand
)
...
...
Dapper NET45/SqlMapperAsync.cs
浏览文件 @
51192328
...
...
@@ -461,7 +461,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
if
(
wasClosed
)
cnn
.
Close
();
}
}
/// <summary>
/// Perform a multi mapping query with arbitrary input parameters
/// </summary>
...
...
@@ -507,7 +507,7 @@ private static async Task<IEnumerable<TReturn>> MultiMapAsync<TReturn>(this IDbC
}
}
private
static
IEnumerable
<
T
>
ExecuteReaderSync
<
T
>(
IDataReader
reader
,
Func
<
IDataReader
,
object
>
func
,
object
parameters
)
private
static
IEnumerable
<
T
>
ExecuteReaderSync
<
T
>(
IDataReader
reader
,
Func
<
IDataReader
,
object
>
func
,
object
parameters
)
{
using
(
reader
)
{
...
...
Dapper.Contrib.Tests/Properties/AssemblyInfo.cs
浏览文件 @
51192328
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
9
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
9
.0.0"
)]
Dapper.Contrib/Properties/AssemblyInfo.cs
浏览文件 @
51192328
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
9
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
9
.0.0"
)]
Dapper.EntityFramework NET45/DbGeographyHandler.cs
浏览文件 @
51192328
...
...
@@ -29,7 +29,7 @@ public override void SetValue(IDbDataParameter parameter, DbGeography value)
parameter
.
Value
=
value
==
null
?
(
object
)
DBNull
.
Value
:
(
object
)
SqlGeography
.
Parse
(
value
.
AsText
());
if
(
parameter
is
SqlParameter
)
{
((
SqlParameter
)
parameter
).
UdtTypeName
=
"
GEOGRAPHY
"
;
((
SqlParameter
)
parameter
).
UdtTypeName
=
"
geography
"
;
}
}
/// <summary>
...
...
Dapper.EntityFramework NET45/DbGeometryHandler.cs
浏览文件 @
51192328
...
...
@@ -29,7 +29,7 @@ public override void SetValue(IDbDataParameter parameter, DbGeometry value)
parameter
.
Value
=
value
==
null
?
(
object
)
DBNull
.
Value
:
(
object
)
SqlGeometry
.
Parse
(
value
.
AsText
());
if
(
parameter
is
SqlParameter
)
{
((
SqlParameter
)
parameter
).
UdtTypeName
=
"
GEOMETRY
"
;
((
SqlParameter
)
parameter
).
UdtTypeName
=
"
geometry
"
;
}
}
/// <summary>
...
...
Dapper.SqlBuilder/Properties/AssemblyInfo.cs
浏览文件 @
51192328
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
9
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
9
.0.0"
)]
Dapper.StrongName.nuspec
浏览文件 @
51192328
...
...
@@ -2,7 +2,7 @@
<package
xmlns=
"http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
>
<metadata
schemaVersion=
"2"
>
<id>
Dapper.StrongName
</id>
<version>
1.3
8
</version>
<version>
1.3
9
</version>
<title>
Dapper dot net (strong named)
</title>
<authors>
Sam Saffron,Marc Gravell
</authors>
<owners>
Sam Saffron,Marc Gravell
</owners>
...
...
DapperTests NET35/Properties/AssemblyInfo.cs
浏览文件 @
51192328
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
9
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
9
.0.0"
)]
DapperTests NET45/Properties/AssemblyInfo.cs
浏览文件 @
51192328
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
9
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
9
.0.0"
)]
Tests/Properties/AssemblyInfo.cs
浏览文件 @
51192328
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
8
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
9
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
9
.0.0"
)]
Tests/Tests.cs
浏览文件 @
51192328
...
...
@@ -3006,6 +3006,7 @@ public void TestDoubleDecimalConversions_SO18228523_Nulls()
public
void
TestParameterInclusionNotSensitiveToCurrentCulture
()
{
// note this might fail if your database server is case-sensitive
CultureInfo
current
=
Thread
.
CurrentThread
.
CurrentCulture
;
try
{
...
...
@@ -4145,6 +4146,7 @@ public void ExplicitConstructors()
public
void
Issue220_InParameterCanBeSpecifiedInAnyCase
()
{
// note this might fail if your database server is case-sensitive
connection
.
Query
<
int
>(
"select * from (select 1 as Id) as X where Id in @ids"
,
new
{
Ids
=
new
[]
{
1
}})
.
IsSequenceEqualTo
(
new
[]
{
1
});
}
...
...
dapper.nuspec
浏览文件 @
51192328
...
...
@@ -2,7 +2,7 @@
<package
xmlns=
"http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
>
<metadata
schemaVersion=
"2"
>
<id>
Dapper
</id>
<version>
1.3
8
</version>
<version>
1.3
9
</version>
<title>
Dapper dot net
</title>
<authors>
Sam Saffron,Marc Gravell
</authors>
<owners>
Sam Saffron,Marc Gravell
</owners>
...
...
@@ -19,6 +19,7 @@
<frameworkAssembly
assemblyName=
"Microsoft.CSharp"
targetFramework=
".NETFramework4.0-Client, .NETFramework4.0"
/>
</frameworkAssemblies>
<releaseNotes>
* 1.39 - fix case on SQL CLR types; grid-reader should respect no-cache flags; make parameter inclusion case-insensitive
* 1.38 - specify constructor explicitly; allow value-type parameters (albeit: boxed)
* 1.37 - Reuse StringBuilder instances when possible (list parameters in particular)
* 1.36 - Fix Issue 192 (expanded parameter naming glitch) and Issue 178 (execute reader now wraps the command/reader pair, to extend the command lifetime;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录