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
2b9a3d48
Commit
2b9a3d48
authored
Jul 20, 2016
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Failing test for #552
parent
1690df14
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
109 additions
and
78 deletions
+109
-78
project.json
Dapper.Contrib/project.json
+2
-2
project.json
Dapper.EntityFramework.StrongName/project.json
+2
-2
project.json
Dapper.EntityFramework/project.json
+2
-2
project.json
Dapper.Rainbow/project.json
+1
-1
project.json
Dapper.SqlBuilder/project.json
+2
-2
Tests.cs
Dapper.Tests/Tests.cs
+39
-0
project.json
Dapper.Tests/project.json
+61
-63
NuGet.Config
NuGet.Config
+0
-6
No files found.
Dapper.Contrib/project.json
View file @
2b9a3d48
...
...
@@ -12,12 +12,12 @@
},
"authors"
:
[
"Sam Saffron"
,
"Johan Danforth"
],
"description"
:
"The official collection of get, insert, update and delete helpers for dapper.net. Also handles lists of entities and optional
\"
dirty
\"
tracking of interface-based entities."
,
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"title"
:
"Dapper.Contrib"
,
"copyright"
:
"2016 Stack Exchange, Inc."
,
"dependencies"
:
{
"Dapper"
:
{
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"target"
:
"project"
}
},
...
...
Dapper.EntityFramework.StrongName/project.json
View file @
2b9a3d48
...
...
@@ -12,12 +12,12 @@
},
"authors"
:
[
"Marc Gravell"
,
"Nick Craver"
],
"description"
:
"Extension handlers for entity framework"
,
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"title"
:
"Dapper entity framework type handlers (with a strong name)"
,
"copyright"
:
"2016 Stack Exchange, Inc."
,
"dependencies"
:
{
"Dapper.StrongName"
:
{
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"target"
:
"project"
}
},
...
...
Dapper.EntityFramework/project.json
View file @
2b9a3d48
...
...
@@ -12,12 +12,12 @@
},
"authors"
:
[
"Marc Gravell"
,
"Nick Craver"
],
"description"
:
"Extension handlers for entity framework"
,
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"title"
:
"Dapper entity framework type handlers"
,
"copyright"
:
"2016 Stack Exchange, Inc."
,
"dependencies"
:
{
"Dapper"
:
{
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"target"
:
"project"
}
},
...
...
Dapper.Rainbow/project.json
View file @
2b9a3d48
...
...
@@ -17,7 +17,7 @@
"copyright"
:
"2012 Sam Saffron"
,
"dependencies"
:
{
"Dapper"
:
{
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"target"
:
"project"
}
},
...
...
Dapper.SqlBuilder/project.json
View file @
2b9a3d48
...
...
@@ -12,12 +12,12 @@
},
"authors"
:
[
"Sam Saffron, Johan Danforth"
],
"description"
:
"The Dapper SqlBuilder component, for building SQL queries dynamically."
,
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"title"
:
"Dapper SqlBuilder component"
,
"copyright"
:
"2016 Stack Exchange, Inc."
,
"dependencies"
:
{
"Dapper"
:
{
"version"
:
"1.50.
0
-*"
,
"version"
:
"1.50.
1
-*"
,
"target"
:
"project"
}
},
...
...
Dapper.Tests/Tests.cs
View file @
2b9a3d48
...
...
@@ -3058,6 +3058,45 @@ public void Issue295_NullableDateTime_SqlServer()
if
(
open
)
conn
.
Open
();
return
conn
;
}
[
FactMySql
]
public
void
Issue552_SignedUnsignedBooleans
()
{
using
(
var
conn
=
GetMySqlConnection
(
true
,
false
,
false
))
{
conn
.
Execute
(
@"
CREATE TEMPORARY TABLE IF NOT EXISTS `bar` (
`id` INT NOT NULL,
`bool_val` BOOL NULL,
PRIMARY KEY (`id`));
truncate table bar;
insert bar (id, bool_val) values (1, null);
insert bar (id, bool_val) values (2, 0);
insert bar (id, bool_val) values (3, 2);
insert bar (id, bool_val) values (4, null);
insert bar (id, bool_val) values (5, 3);
insert bar (id, bool_val) values (6, 0);
insert bar (id, bool_val) values (7, null);
insert bar (id, bool_val) values (8, 5);"
);
var
rows
=
conn
.
Query
<
MySqlHasBool
>(
"select * from bar;"
).
ToDictionary
(
x
=>
x
.
Id
);
rows
[
1
].
Bool_Val
.
IsNull
();
rows
[
2
].
Bool_Val
.
IsEqualTo
(
false
);
rows
[
3
].
Bool_Val
.
IsEqualTo
(
true
);
rows
[
4
].
Bool_Val
.
IsNull
();
rows
[
5
].
Bool_Val
.
IsEqualTo
(
true
);
rows
[
6
].
Bool_Val
.
IsEqualTo
(
false
);
rows
[
7
].
Bool_Val
.
IsNull
();
rows
[
8
].
Bool_Val
.
IsEqualTo
(
true
);
}
}
class
MySqlHasBool
{
public
int
Id
{
get
;
set
;}
public
bool
?
Bool_Val
{
get
;
set
;}
}
[
FactMySql
]
public
void
Issue295_NullableDateTime_MySql_Default
()
{
...
...
Dapper.Tests/project.json
View file @
2b9a3d48
...
...
@@ -22,8 +22,8 @@
"Dapper.Contrib"
:
{
"target"
:
"project"
},
"xunit"
:
"2.
2.0-beta2-build330
0"
,
"
dotnet-test-xunit"
:
"2.2.0-preview2-build1029
"
"xunit"
:
"2.
1.
0"
,
"
xunit.assert"
:
"2.1.0
"
},
"buildOptions"
:
{
"warningsAsErrors"
:
true
,
...
...
@@ -33,7 +33,7 @@
"testRunner"
:
"xunit"
,
"frameworks"
:
{
//
"net40"
:
{
//
"
compilation
Options"
:
{
//
"
build
Options"
:
{
//
"define"
:
[
//
"MYSQL"
,
//
"ENTITY_FRAMEWORK"
,
...
...
@@ -71,73 +71,71 @@
//
"Simple.Data.Core"
:
"1.0.0-rc3"
,
//
"Simple.Data.SqlServer"
:
"1.0.0-rc3"
,
//
"Soma"
:
"1.8.0.7"
,
//
"System.Data.SQLite"
:
"1.0.99"
,
//
"xunit"
:
"1.9.2"
//
"System.Data.SQLite"
:
"1.0.99"
//
}
//
},
//
"net451"
:
{
//
"buildOptions"
:
{
//
"define"
:
[
//
"NET45"
,
//
"ASYNC"
,
//
"MYSQL"
,
//
"ENTITY_FRAMEWORK"
,
//
"LINQ2SQL"
,
//
"FIREBIRD"
,
//
"SQL_CE"
,
//
"POSTGRESQL"
,
//
"OLEDB"
,
//
"MASSIVE"
,
//
"ORMLITE"
,
//
"SOMA"
,
//
"SIMPLEDATA"
,
//
"SQLITE"
,
//
"XUNIT2"
//
]
//
},
//
"frameworkAssemblies"
:
{
//
"System.Configuration"
:
"4.0.0.0"
,
//
"System.Data"
:
"4.0.0.0"
,
//
"System.Data.Linq"
:
"4.0.0.0"
,
//
"System.Runtime"
:
"4.0.10.0"
,
//
"System.Xml"
:
"4.0.0.0"
,
//
"System.Xml.Linq"
:
"4.0.0.0"
//
},
//
"dependencies"
:
{
//
"Dapper.EntityFramework"
:
{
//
"target"
:
"project"
//
},
//
"EntityFramework"
:
"6.1.3"
,
//
"FirebirdSql.Data.FirebirdClient"
:
"4.10.0"
,
//
"Microsoft.SqlServer.Compact"
:
"4.0.8876.1"
,
//
"Microsoft.SqlServer.Types"
:
"11.0.2"
,
//
"MySql.Data"
:
"6.9.8"
,
//
"NHibernate"
:
"4.0.4.4000"
,
//
"Npgsql"
:
"3.0.5"
,
//
"ServiceStack.OrmLite"
:
"4.0.48"
,
//
"ServiceStack.OrmLite.SqlServer"
:
"4.0.48"
,
//
"Simple.Data.Ado"
:
"2.0.0-alpha1"
,
//
"Simple.Data.Core"
:
"2.0.0-alpha1"
,
//
"Simple.Data.SqlServer"
:
"2.0.0-alpha1"
,
//
"Soma"
:
"1.8.0.7"
,
//
"Susanoo.Core"
:
"1.2.4"
,
//
"Susanoo.SqlServer"
:
"1.2.4"
,
//
"System.Data.SQLite"
:
"1.0.99"
,
//
"xunit"
:
"2.1.0"
,
//
"dotnet-test-xunit"
:
"1.0.0-rc3-*"
//
}
//
},
"netcoreapp1.0"
:
{
"net451"
:
{
"buildOptions"
:
{
"define"
:
[
"ASYNC"
,
"COREFX"
,
"XUNIT2"
,
"SQLITE"
]
"define"
:
[
"NET45"
,
"ASYNC"
,
"MYSQL"
,
"ENTITY_FRAMEWORK"
,
"LINQ2SQL"
,
"FIREBIRD"
,
"SQL_CE"
,
"POSTGRESQL"
,
"OLEDB"
,
"MASSIVE"
,
"ORMLITE"
,
"SOMA"
,
"SIMPLEDATA"
,
"SQLITE"
,
"XUNIT2"
]
},
"frameworkAssemblies"
:
{
"System.Configuration"
:
"4.0.0.0"
,
"System.Data"
:
"4.0.0.0"
,
"System.Data.Linq"
:
"4.0.0.0"
,
"System.Runtime"
:
"4.0.10.0"
,
"System.Xml"
:
"4.0.0.0"
,
"System.Xml.Linq"
:
"4.0.0.0"
},
"dependencies"
:
{
"Microsoft.NETCore.App"
:
{
"version"
:
"1.0.0"
,
"type"
:
"platform"
"Dapper.EntityFramework"
:
{
"target"
:
"project"
},
"Microsoft.Data.Sqlite"
:
"1.0.0"
"EntityFramework"
:
"6.1.3"
,
"FirebirdSql.Data.FirebirdClient"
:
"4.10.0"
,
"Microsoft.SqlServer.Compact"
:
"4.0.8876.1"
,
"Microsoft.SqlServer.Types"
:
"11.0.2"
,
"MySql.Data"
:
"6.9.8"
,
"NHibernate"
:
"4.0.4.4000"
,
"Npgsql"
:
"3.0.5"
,
"ServiceStack.OrmLite"
:
"4.0.48"
,
"ServiceStack.OrmLite.SqlServer"
:
"4.0.48"
,
"Simple.Data.Ado"
:
"2.0.0-alpha1"
,
"Simple.Data.Core"
:
"2.0.0-alpha1"
,
"Simple.Data.SqlServer"
:
"2.0.0-alpha1"
,
"Soma"
:
"1.8.0.7"
,
"Susanoo.Core"
:
"1.2.4"
,
"Susanoo.SqlServer"
:
"1.2.4"
,
"System.Data.SQLite"
:
"1.0.99"
}
}
//
,
//
"netcoreapp1.0"
:
{
//
"buildOptions"
:
{
//
"define"
:
[
"ASYNC"
,
"COREFX"
,
"XUNIT2"
,
"SQLITE"
]
//
},
//
"dependencies"
:
{
//
"Microsoft.NETCore.App"
:
{
//
"version"
:
"1.0.0"
,
//
"type"
:
"platform"
//
},
//
"Microsoft.Data.Sqlite"
:
"1.0.0"
//
}
//
}
}
}
\ No newline at end of file
NuGet.Config
View file @
2b9a3d48
...
...
@@ -2,12 +2,6 @@
<
configuration
>
<
packageSources
>
<
clear
/>
<!--
<
add
key
=
"CoreCLR"
value
=
"https://www.myget.org/F/dotnet-coreclr/api/v3/index.json"
/>
-->
<!--<
add
key
=
"myget.org dotnet-core"
value
=
"https://dotnet.myget.org/F/dotnet-core/api/v3/index.json"
/> -->
<!--<
add
key
=
"aspnetcirelease"
value
=
"https://www.myget.org/F/aspnetcirelease/api/v3/index.json"
/> -->
<
add
key
=
"xunit"
value
=
"https://www.myget.org/F/xunit/api/v3/index.json"
/>
<
add
key
=
"NuGet"
value
=
"https://api.nuget.org/v3/index.json"
/>
</
packageSources
>
</
configuration
>
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