Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Dapper
提交
a161cb5a
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,发现更多精彩内容 >>
提交
a161cb5a
编写于
5月 01, 2015
作者:
M
Marc Gravell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CoreCLR build / 1.41-beta
上级
1fc06af5
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
1791 addition
and
154 deletion
+1791
-154
Dapper NET40/SqlMapper.cs
Dapper NET40/SqlMapper.cs
+432
-56
Dapper.DNX.Tests/Program.cs
Dapper.DNX.Tests/Program.cs
+7
-6
Dapper.DNX.Tests/project.json
Dapper.DNX.Tests/project.json
+16
-13
Dapper.DNX.Tests/project.lock.json
Dapper.DNX.Tests/project.lock.json
+665
-28
Dapper/Dapper.xproj
Dapper/Dapper.xproj
+3
-0
Dapper/project.json
Dapper/project.json
+22
-11
Dapper/project.lock.json
Dapper/project.lock.json
+646
-40
未找到文件。
Dapper NET40/SqlMapper.cs
浏览文件 @
a161cb5a
此差异已折叠。
点击以展开。
Dapper.DNX.Tests/Program.cs
浏览文件 @
a161cb5a
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
using
System.Linq
;
using
System.Linq
;
using
System.Data.SqlClient
;
using
System.Data.SqlClient
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Reflection
;
namespace
Dapper.DNX.Tests
namespace
Dapper.DNX.Tests
{
{
...
@@ -9,7 +10,11 @@ public class Program
...
@@ -9,7 +10,11 @@ public class Program
{
{
public
void
Main
()
public
void
Main
()
{
{
#if DNXCORE50
Console
.
WriteLine
(
"From: {0}"
,
typeof
(
int
).
AssemblyQualifiedName
);
#else
Console
.
WriteLine
(
"Version: {0}"
,
Environment
.
Version
);
Console
.
WriteLine
(
"Version: {0}"
,
Environment
.
Version
);
#endif
const
string
connectionString
=
"Data Source=.;Initial Catalog=tempdb;Integrated Security=True"
;
const
string
connectionString
=
"Data Source=.;Initial Catalog=tempdb;Integrated Security=True"
;
using
(
var
conn
=
new
SqlConnection
(
connectionString
))
using
(
var
conn
=
new
SqlConnection
(
connectionString
))
{
{
...
@@ -18,16 +23,12 @@ public void Main()
...
@@ -18,16 +23,12 @@ public void Main()
Console
.
WriteLine
(
row
.
X
);
Console
.
WriteLine
(
row
.
X
);
var
methods
=
typeof
(
Dapper
.
SqlMapper
).
GetMethods
().
Where
(
x
=>
x
.
Name
==
"QueryAsync"
).
ToList
();
var
methods
=
typeof
(
Dapper
.
SqlMapper
).
GetMethods
().
Where
(
x
=>
x
.
Name
==
"QueryAsync"
).
ToList
();
#if ASYNC
row
=
conn
.
QueryAsync
<
Foo
>(
"select @a as X"
,
new
{
a
=
123
}).
Result
.
Single
();
row
=
conn
.
QueryAsync
<
Foo
>(
"select @a as X"
,
new
{
a
=
123
}).
Result
.
Single
();
#endif
Console
.
WriteLine
(
row
.
X
);
Console
.
WriteLine
(
row
.
X
);
}
}
}
}
private
static
async
Task
<
int
>
WithDelay
(
int
i
)
{
await
Task
.
Delay
(
100
);
return
i
;
}
class
Foo
class
Foo
{
{
public
int
X
{
get
;
set
;
}
public
int
X
{
get
;
set
;
}
...
...
Dapper.DNX.Tests/project.json
浏览文件 @
a161cb5a
...
@@ -6,32 +6,35 @@
...
@@ -6,32 +6,35 @@
"commands"
:
{
"commands"
:
{
"Dapper.DNX.Tests"
:
"Dapper.DNX.Tests"
"Dapper.DNX.Tests"
:
"Dapper.DNX.Tests"
},
},
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
]},
"frameworks"
:
{
"frameworks"
:
{
"net45"
:
{
"net45"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
],
"warningsAsErrors"
:
true
},
"dependencies"
:
{
},
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
}
},
"net40"
:
{
"dependencies"
:
{
"dependencies"
:
{
},
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
"System.Data"
:
"4.0.0.0"
}
}
},
},
//
"net40"
:
{
//
"dependencies"
:
{
//
},
//
"frameworkAssemblies"
:
{
//
"System.Data"
:
"4.0.0.0"
//
}
//
},
"dnx451"
:
{
"dnx451"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
],
"warningsAsErrors"
:
true
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
"System.Data"
:
"4.0.0.0"
}
}
},
"dnxcore50"
:
{
"compilationOptions"
:
{
"define"
:
[
],
"warningsAsErrors"
:
true
},
"dependencies"
:
{
"System.Console"
:
"4.0.0-beta-*"
,
"System.Reflection"
:
"4.0.10-beta-*"
}
}
}
//
"dnxcore50"
:
{
//
"dependencies"
:
{
//
"System.Console"
:
"4.0.0-beta-22716"
//
}
//
}
}
}
}
}
Dapper.DNX.Tests/project.lock.json
浏览文件 @
a161cb5a
此差异已折叠。
点击以展开。
Dapper/Dapper.xproj
浏览文件 @
a161cb5a
...
@@ -14,6 +14,9 @@
...
@@ -14,6 +14,9 @@
<PropertyGroup
Label=
"Configuration"
Condition=
"'$(Configuration)|$(Platform)'=='Release|AnyCPU'"
>
<PropertyGroup
Label=
"Configuration"
Condition=
"'$(Configuration)|$(Platform)'=='Release|AnyCPU'"
>
<AssemblyName>
Dapper
</AssemblyName>
<AssemblyName>
Dapper
</AssemblyName>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Label=
"Configuration"
Condition=
"'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"
>
<AssemblyName>
Dapper
</AssemblyName>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<SchemaVersion>
2.0
</SchemaVersion>
<SchemaVersion>
2.0
</SchemaVersion>
</PropertyGroup>
</PropertyGroup>
...
...
Dapper/project.json
浏览文件 @
a161cb5a
{
{
"authors"
:
[
"Sam Saffron"
,
"Marc Gravell"
],
"authors"
:
[
"Sam Saffron"
,
"Marc Gravell"
],
"description"
:
"A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc.."
,
"description"
:
"A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc.."
,
"version"
:
"1.41-
alph
a"
,
"version"
:
"1.41-
bet
a"
,
"compile"
:
[
"../Dapper NET40/*.cs"
,
"../Dapper NET45/*.cs"
],
"compile"
:
[
"../Dapper NET40/*.cs"
,
"../Dapper NET45/*.cs"
],
"frameworks"
:
{
"frameworks"
:
{
"net45"
:
{
"net45"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
],
"warningsAsErrors"
:
true
},
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
],
"warningsAsErrors"
:
true
},
"dependencies"
:
{
"dependencies"
:
{
"System.Runtime"
:
"4.0.20-beta-22816"
},
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
"System.Data"
:
"4.0.0.0"
...
@@ -28,15 +29,25 @@
...
@@ -28,15 +29,25 @@
"System.Data"
:
"4.0.0.0"
"System.Data"
:
"4.0.0.0"
}
}
},
},
//
"dnxcore50"
:
{
"dnxcore50"
:
{
//
"dependencies"
:
{
"compilationOptions"
:
{
"define"
:
[
],
"warningsAsErrors"
:
true
},
//
"System.Runtime"
:
"4.0.20-beta-22716"
,
"dependencies"
:
{
//
"System.Data.Common"
:
"4.0.0-beta-*"
,
"System.Text.RegularExpressions"
:
"4.0.10-beta-*"
,
//
},
"System.Collections"
:
"4.0.10-beta-*"
,
//
"frameworkAssemblies"
:
{
"System.Collections.Concurrent"
:
"4.0.10-beta-*"
,
"System.Linq"
:
"4.0.0-beta-*"
,
//
//
"System.Threading"
:
"4.0.10-beta-*"
,
//
}
"Microsoft.CSharp"
:
"4.0.0-beta-*"
,
//
}
"System.Reflection"
:
"4.0.10-beta-*"
,
"System.Reflection.Emit"
:
"4.0.0-beta-*"
,
"System.Reflection.Emit.ILGeneration"
:
"4.0.0-beta-*"
,
"System.Reflection.Emit.Lightweight"
:
"4.0.0-beta-*"
,
"System.Reflection.TypeExtensions"
:
"4.0.0-beta-*"
,
"System.Data.Common"
:
"4.0.0-beta-*"
,
"System.Data.SqlClient"
:
"4.0.0-beta-*"
,
"System.Runtime.Extensions"
:
"4.0.10-beta-*"
,
"System.Text.Encoding.CodePages"
:
"4.0.0-beta-*"
}
}
}
}
}
}
Dapper/project.lock.json
浏览文件 @
a161cb5a
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录