Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
ad177e5d
Commit
ad177e5d
authored
Apr 10, 2015
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaks to DNX
parent
5fd788db
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
23 deletions
+28
-23
Program.cs
Dapper.DNX.Tests/Program.cs
+11
-0
project.json
Dapper.DNX.Tests/project.json
+8
-8
project.lock.json
Dapper.DNX.Tests/project.lock.json
+1
-4
project.json
Dapper/project.json
+8
-8
project.lock.json
Dapper/project.lock.json
+0
-3
No files found.
Dapper.DNX.Tests/Program.cs
View file @
ad177e5d
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
;
}
...
...
Dapper.DNX.Tests/project.json
View file @
ad177e5d
{
"version"
:
"1.0.0-*"
,
"dependencies"
:
{
"Dapper"
:
"1.
0.
0-*"
"Dapper"
:
"1.
4
0-*"
},
"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"
...
...
Dapper.DNX.Tests/project.lock.json
View file @
ad177e5d
...
...
@@ -3,14 +3,11 @@
"version"
:
-9998
,
"projectFileDependencyGroups"
:
{
""
:
[
"Dapper >= 1.
0.
0-*"
"Dapper >= 1.
4
0-*"
],
".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"
]
...
...
Dapper/project.json
View file @
ad177e5d
{
"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.
4
0-*"
,
"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"
:
{
...
...
Dapper/project.lock.json
View file @
ad177e5d
...
...
@@ -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"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment