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
5472d2ab
Commit
5472d2ab
authored
Aug 28, 2014
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.34: Support for SqlHierarchyId (core)
parent
62bdcd1b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
36 additions
and
15 deletions
+36
-15
AssemblyInfo.cs
Dapper NET40/Properties/AssemblyInfo.cs
+2
-2
SqlMapper.cs
Dapper NET40/SqlMapper.cs
+3
-0
AssemblyInfo.cs
Dapper.Contrib.Tests/Properties/AssemblyInfo.cs
+2
-2
AssemblyInfo.cs
Dapper.Contrib/Properties/AssemblyInfo.cs
+2
-2
AssemblyInfo.cs
Dapper.SqlBuilder/Properties/AssemblyInfo.cs
+2
-2
AssemblyInfo.cs
DapperTests NET35/Properties/AssemblyInfo.cs
+2
-2
AssemblyInfo.cs
DapperTests NET45/Properties/AssemblyInfo.cs
+2
-2
AssemblyInfo.cs
Tests/Properties/AssemblyInfo.cs
+2
-2
Tests.cs
Tests/Tests.cs
+17
-0
dapper.nuspec
dapper.nuspec
+2
-1
No files found.
Dapper NET40/Properties/AssemblyInfo.cs
View file @
5472d2ab
...
...
@@ -32,5 +32,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
4
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
4
.0.0"
)]
Dapper NET40/SqlMapper.cs
View file @
5472d2ab
...
...
@@ -847,6 +847,9 @@ internal static DbType LookupDbType(Type type, string name, out ITypeHandler han
case
"Microsoft.SqlServer.Types.SqlGeometry"
:
AddTypeHandler
(
type
,
handler
=
new
UdtTypeHandler
(
"GEOMETRY"
));
return
DbType
.
Object
;
case
"Microsoft.SqlServer.Types.SqlHierarchyId"
:
AddTypeHandler
(
type
,
handler
=
new
UdtTypeHandler
(
"HIERARCHYID"
));
return
DbType
.
Object
;
}
throw
new
NotSupportedException
(
string
.
Format
(
"The member {0} of type {1} cannot be used as a parameter value"
,
name
,
type
));
}
...
...
Dapper.Contrib.Tests/Properties/AssemblyInfo.cs
View file @
5472d2ab
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
4
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
4
.0.0"
)]
Dapper.Contrib/Properties/AssemblyInfo.cs
View file @
5472d2ab
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
4
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
4
.0.0"
)]
Dapper.SqlBuilder/Properties/AssemblyInfo.cs
View file @
5472d2ab
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
4
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
4
.0.0"
)]
DapperTests NET35/Properties/AssemblyInfo.cs
View file @
5472d2ab
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
4
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
4
.0.0"
)]
DapperTests NET45/Properties/AssemblyInfo.cs
View file @
5472d2ab
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
4
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
4
.0.0"
)]
Tests/Properties/AssemblyInfo.cs
View file @
5472d2ab
...
...
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
3
.0.0"
)]
[
assembly
:
AssemblyVersion
(
"1.3
4
.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3
4
.0.0"
)]
Tests/Tests.cs
View file @
5472d2ab
...
...
@@ -3033,6 +3033,23 @@ public void SqlGeography_SO25538154()
row
.
Geometry
.
IsNotNull
();
}
public
void
SqlHierarchyId_SO18888911
()
{
Dapper
.
SqlMapper
.
ResetTypeHandlers
();
var
row
=
connection
.
Query
<
HazSqlHierarchy
>(
"select 3 as [Id], hierarchyid::Parse('/1/2/3/') as [Path]"
).
Single
();
row
.
Id
.
Equals
(
3
);
row
.
Path
.
IsNotNull
();
var
val
=
connection
.
Query
<
SqlHierarchyId
>(
"select @Path"
,
row
).
Single
();
val
.
IsNotNull
();
}
public
class
HazSqlHierarchy
{
public
int
Id
{
get
;
set
;
}
public
SqlHierarchyId
Path
{
get
;
set
;
}
}
public
void
TypeBasedViaDynamic
()
{
Type
type
=
GetSomeType
();
...
...
dapper.nuspec
View file @
5472d2ab
...
...
@@ -2,7 +2,7 @@
<package
xmlns=
"http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
>
<metadata
schemaVersion=
"2"
>
<id>
Dapper
</id>
<version>
1.3
3
</version>
<version>
1.3
4
</version>
<title>
Dapper dot net
</title>
<authors>
Sam Saffron,Marc Gravell
</authors>
<owners>
Sam Saffron,Marc Gravell
</owners>
...
...
@@ -19,6 +19,7 @@
<frameworkAssembly
assemblyName=
"Microsoft.CSharp"
targetFramework=
".NETFramework4.0-Client, .NETFramework4.0"
/>
</frameworkAssemblies>
<releaseNotes>
* 1.34 - Support for SqlHierarchyId (core)
* 1.33 - Support for SqlGeometry (core) and DbGeometry (EF)
* 1.32 - Support for SqlGeography in core library
* 1.31 - Fix issue with error message when there is a column/type mismatch
...
...
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