提交 ad177e5d 编写于 作者: M Marc Gravell

Tweaks to DNX

上级 5fd788db
using System;
using System.Linq;
using System.Data.SqlClient;
using System.Threading.Tasks;
namespace Dapper.DNX.Tests
{
......@@ -15,8 +16,18 @@ public void Main()
conn.Open();
var row = conn.Query<Foo>("select @a as X", new { a = 123 }).Single();
Console.WriteLine(row.X);
var methods = typeof(Dapper.SqlMapper).GetMethods().Where(x => x.Name == "QueryAsync").ToList();
//row = conn.QueryAsync<Foo>("select @a as X", new { a = 123 }).Wait().Single();
//Console.WriteLine(row.X);
}
}
private static async Task<int> WithDelay(int i)
{
await Task.Delay(100);
return i;
}
class Foo
{
public int X { get; set; }
......
{
"version": "1.0.0-*",
"dependencies": {
"Dapper": "1.0.0-*"
"Dapper": "1.40-*"
},
"commands": {
"Dapper.DNX.Tests": "Dapper.DNX.Tests"
......@@ -14,13 +14,13 @@
"System.Data": "4.0.0.0"
}
},
"net40": {
"dependencies": {
},
"frameworkAssemblies": {
"System.Data": "4.0.0.0"
}
},
//"net40": {
// "dependencies": {
// },
// "frameworkAssemblies": {
// "System.Data": "4.0.0.0"
// }
//},
"dnx451": {
"frameworkAssemblies": {
"System.Data": "4.0.0.0"
......
......@@ -3,14 +3,11 @@
"version": -9998,
"projectFileDependencyGroups": {
"": [
"Dapper >= 1.0.0-*"
"Dapper >= 1.40-*"
],
".NETFramework,Version=v4.5": [
"framework/System.Data >= 4.0.0.0"
],
".NETFramework,Version=v4.0": [
"framework/System.Data >= 4.0.0.0"
],
"DNX,Version=v4.5.1": [
"framework/System.Data >= 4.0.0.0"
]
......
{
"authors": [ "Sam Saffron", "Marc Gravell" ],
"description": "A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc..",
"version": "1.0.0-*",
"version": "1.40-*",
"code": [ "../Dapper NET40/*.cs", "../Dapper NET45/*.cs" ],
"frameworks": {
"net45": {
......@@ -12,13 +12,13 @@
"System.Data": "4.0.0.0"
}
},
"net40": {
"dependencies": {
},
"frameworkAssemblies": {
"System.Data": "4.0.0.0"
}
},
//"net40": {
// "dependencies": {
// },
// "frameworkAssemblies": {
// "System.Data": "4.0.0.0"
// }
//},
"dnx451": {
"compilationOptions": { "define": [ "ASYNC" ] },
"dependencies": {
......
......@@ -6,9 +6,6 @@
".NETFramework,Version=v4.5": [
"framework/System.Data >= 4.0.0.0"
],
".NETFramework,Version=v4.0": [
"framework/System.Data >= 4.0.0.0"
],
"DNX,Version=v4.5.1": [
"framework/System.Data >= 4.0.0.0"
]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册