diff --git a/Dapper NET40/Properties/AssemblyInfo.cs b/Dapper NET40/Properties/AssemblyInfo.cs index c266cc1aafac8ab6956dcb0df5b5ca32de9faae7..5e8e55e7a1bfef2affd9610ff37fb4ec209c8417 100644 --- a/Dapper NET40/Properties/AssemblyInfo.cs +++ b/Dapper NET40/Properties/AssemblyInfo.cs @@ -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.32.0.0")] -[assembly: AssemblyFileVersion("1.32.0.0")] +[assembly: AssemblyVersion("1.33.0.0")] +[assembly: AssemblyFileVersion("1.33.0.0")] diff --git a/Dapper NET40/SqlMapper.cs b/Dapper NET40/SqlMapper.cs index 925c62d4eb4c0185dce882a754c1558131643a3a..0a6a7a6f6d824f8a88ebe4fda491415fa9ca2dbf 100644 --- a/Dapper NET40/SqlMapper.cs +++ b/Dapper NET40/SqlMapper.cs @@ -839,11 +839,14 @@ internal static DbType LookupDbType(Type type, string name, out ITypeHandler han { return DbType.Object; } - if(type.FullName == "Microsoft.SqlServer.Types.SqlGeography") - { - handler = new UdtTypeHandler("GEOGRAPHY"); - AddTypeHandler(type, handler); - return DbType.Object; + switch (type.FullName) + { + case "Microsoft.SqlServer.Types.SqlGeography": + AddTypeHandler(type, handler = new UdtTypeHandler("GEOGRAPHY")); + return DbType.Object; + case "Microsoft.SqlServer.Types.SqlGeometry": + AddTypeHandler(type, handler = new UdtTypeHandler("GEOMETRY")); + return DbType.Object; } throw new NotSupportedException(string.Format("The member {0} of type {1} cannot be used as a parameter value", name, type)); } diff --git a/Dapper.Contrib.Tests/Properties/AssemblyInfo.cs b/Dapper.Contrib.Tests/Properties/AssemblyInfo.cs index 869cf58083c3cf860ef387b88991a6dfcd4f41ed..10613ac7c927a9b42bcc3202902c2c5fe1285566 100644 --- a/Dapper.Contrib.Tests/Properties/AssemblyInfo.cs +++ b/Dapper.Contrib.Tests/Properties/AssemblyInfo.cs @@ -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.32.0.0")] -[assembly: AssemblyFileVersion("1.32.0.0")] +[assembly: AssemblyVersion("1.33.0.0")] +[assembly: AssemblyFileVersion("1.33.0.0")] diff --git a/Dapper.Contrib/Properties/AssemblyInfo.cs b/Dapper.Contrib/Properties/AssemblyInfo.cs index c3bfc7376a15b78aec07eff5f38faed8998e1a70..07083a775998df8db243f34d8f3f1d63efa98348 100644 --- a/Dapper.Contrib/Properties/AssemblyInfo.cs +++ b/Dapper.Contrib/Properties/AssemblyInfo.cs @@ -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.32.0.0")] -[assembly: AssemblyFileVersion("1.32.0.0")] +[assembly: AssemblyVersion("1.33.0.0")] +[assembly: AssemblyFileVersion("1.33.0.0")] diff --git a/Dapper.EntityFramework NET40/Dapper.EntityFramework NET40.csproj b/Dapper.EntityFramework NET40/Dapper.EntityFramework NET40.csproj index f9125c2cb8c7c1ffbab5f055fbc5f55730dc3f4d..97a04426476889c313034f649b5ebcb7c1c5ae80 100644 --- a/Dapper.EntityFramework NET40/Dapper.EntityFramework NET40.csproj +++ b/Dapper.EntityFramework NET40/Dapper.EntityFramework NET40.csproj @@ -57,10 +57,15 @@ DbGeographyHandler.cs + + DbGeometryHandler.cs + Handlers.cs - + + AssemblyInfo.cs + @@ -92,6 +97,9 @@ Dapper NET40 + + +