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
3df8d88c
Commit
3df8d88c
authored
Nov 14, 2015
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DNX: More cleanup
parent
9fdfb4f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
34 deletions
+12
-34
Assert.cs
Dapper.DNX.Tests/Assert.cs
+1
-1
Tests.Async.cs
Dapper.DNX.Tests/Tests.Async.cs
+1
-5
Tests.cs
Dapper.DNX.Tests/Tests.cs
+8
-18
SqlMapper.GridReader.Async.cs
Dapper/SqlMapper.GridReader.Async.cs
+2
-10
No files found.
Dapper.DNX.Tests/Assert.cs
View file @
3df8d88c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System.Linq
;
using
System.Linq
;
#if DNXCORE50
#if DNXCORE50
using
ApplicationException
=
global
::
System
.
InvalidOperationException
;
using
ApplicationException
=
System
.
InvalidOperationException
;
#endif
#endif
namespace
SqlMapper
namespace
SqlMapper
...
...
Dapper.DNX.Tests/Tests.Async.cs
View file @
3df8d88c
...
@@ -10,11 +10,7 @@
...
@@ -10,11 +10,7 @@
using
System.Data.SqlClient
;
using
System.Data.SqlClient
;
#if DNXCORE50
#if DNXCORE50
using
IDbCommand
=
global
::
System
.
Data
.
Common
.
DbCommand
;
using
IDbConnection
=
System
.
Data
.
Common
.
DbConnection
;
using
IDbDataParameter
=
global
::
System
.
Data
.
Common
.
DbParameter
;
using
IDbConnection
=
global
::
System
.
Data
.
Common
.
DbConnection
;
using
IDbTransaction
=
global
::
System
.
Data
.
Common
.
DbTransaction
;
using
IDataReader
=
global
::
System
.
Data
.
Common
.
DbDataReader
;
#endif
#endif
namespace
DapperTests_NET45
namespace
DapperTests_NET45
...
...
Dapper.DNX.Tests/Tests.cs
View file @
3df8d88c
...
@@ -2572,7 +2572,7 @@ static string GetDescriptionFromAttribute(MemberInfo member)
...
@@ -2572,7 +2572,7 @@ static string GetDescriptionFromAttribute(MemberInfo member)
if
(
member
==
null
)
return
null
;
if
(
member
==
null
)
return
null
;
#if DNXCORE50
#if DNXCORE50
var
data
=
member
.
CustomAttributes
.
FirstOrDefault
(
x
=>
x
.
AttributeType
==
typeof
(
DescriptionAttribute
));
var
data
=
member
.
CustomAttributes
.
FirstOrDefault
(
x
=>
x
.
AttributeType
==
typeof
(
DescriptionAttribute
));
return
data
==
null
?
null
:
(
string
)
data
.
ConstructorArguments
.
Single
().
Value
;
return
(
string
)
data
?
.
ConstructorArguments
.
Single
().
Value
;
#else
#else
var
attrib
=
(
DescriptionAttribute
)
Attribute
.
GetCustomAttribute
(
member
,
typeof
(
DescriptionAttribute
),
false
);
var
attrib
=
(
DescriptionAttribute
)
Attribute
.
GetCustomAttribute
(
member
,
typeof
(
DescriptionAttribute
),
false
);
return
attrib
==
null
?
null
:
attrib
.
Description
;
return
attrib
==
null
?
null
:
attrib
.
Description
;
...
@@ -2957,9 +2957,9 @@ public TransactedConnection(IDbConnection conn, IDbTransaction tran)
...
@@ -2957,9 +2957,9 @@ public TransactedConnection(IDbConnection conn, IDbTransaction tran)
}
}
public
override
string
ConnectionString
{
get
{
return
_conn
.
ConnectionString
;
}
set
{
_conn
.
ConnectionString
=
value
;
}
}
public
override
string
ConnectionString
{
get
{
return
_conn
.
ConnectionString
;
}
set
{
_conn
.
ConnectionString
=
value
;
}
}
public
override
int
ConnectionTimeout
{
get
{
return
_conn
.
ConnectionTimeout
;
}
}
public
override
int
ConnectionTimeout
=>
_conn
.
ConnectionTimeout
;
public
override
string
Database
{
get
{
return
_conn
.
Database
;
}
}
public
override
string
Database
=>
_conn
.
Database
;
public
override
ConnectionState
State
{
get
{
return
_conn
.
State
;
}
}
public
override
ConnectionState
State
=>
_conn
.
State
;
protected
override
IDbTransaction
BeginDbTransaction
(
IsolationLevel
isolationLevel
)
protected
override
IDbTransaction
BeginDbTransaction
(
IsolationLevel
isolationLevel
)
{
{
...
@@ -2970,20 +2970,10 @@ public override void ChangeDatabase(string databaseName)
...
@@ -2970,20 +2970,10 @@ public override void ChangeDatabase(string databaseName)
{
{
_conn
.
ChangeDatabase
(
databaseName
);
_conn
.
ChangeDatabase
(
databaseName
);
}
}
public
override
string
DataSource
public
override
string
DataSource
=>
_conn
.
DataSource
;
{
get
public
override
string
ServerVersion
=>
_conn
.
ServerVersion
;
{
return
_conn
.
DataSource
;
}
}
public
override
string
ServerVersion
{
get
{
return
_conn
.
ServerVersion
;
}
}
public
override
void
Close
()
public
override
void
Close
()
{
{
_conn
.
Close
();
_conn
.
Close
();
...
...
Dapper/SqlMapper.GridReader.Async.cs
View file @
3df8d88c
...
@@ -7,16 +7,8 @@
...
@@ -7,16 +7,8 @@
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
#if DNXCORE50
#if DNXCORE50
using
IDbDataParameter
=
global
::
System
.
Data
.
Common
.
DbParameter
;
using
IDbCommand
=
System
.
Data
.
Common
.
DbCommand
;
using
IDataParameter
=
global
::
System
.
Data
.
Common
.
DbParameter
;
using
IDataReader
=
System
.
Data
.
Common
.
DbDataReader
;
using
IDbTransaction
=
global
::
System
.
Data
.
Common
.
DbTransaction
;
using
IDbConnection
=
global
::
System
.
Data
.
Common
.
DbConnection
;
using
IDbCommand
=
global
::
System
.
Data
.
Common
.
DbCommand
;
using
IDataReader
=
global
::
System
.
Data
.
Common
.
DbDataReader
;
using
IDataRecord
=
global
::
System
.
Data
.
Common
.
DbDataReader
;
using
IDataParameterCollection
=
global
::
System
.
Data
.
Common
.
DbParameterCollection
;
using
DataException
=
global
::
System
.
InvalidOperationException
;
using
ApplicationException
=
global
::
System
.
InvalidOperationException
;
#endif
#endif
namespace
Dapper
namespace
Dapper
{
{
...
...
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