提交 51192328 编写于 作者: M Marc Gravell

Package updates

上级 4997b176
......@@ -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.38.0.0")]
[assembly: AssemblyFileVersion("1.38.0.0")]
[assembly: AssemblyVersion("1.39.0.0")]
[assembly: AssemblyFileVersion("1.39.0.0")]
......@@ -897,13 +897,13 @@ internal static DbType LookupDbType(Type type, string name, bool demand, out ITy
switch (type.FullName)
{
case "Microsoft.SqlServer.Types.SqlGeography":
AddTypeHandler(type, handler = new UdtTypeHandler("GEOGRAPHY"));
AddTypeHandler(type, handler = new UdtTypeHandler("geography"));
return DbType.Object;
case "Microsoft.SqlServer.Types.SqlGeometry":
AddTypeHandler(type, handler = new UdtTypeHandler("GEOMETRY"));
AddTypeHandler(type, handler = new UdtTypeHandler("geometry"));
return DbType.Object;
case "Microsoft.SqlServer.Types.SqlHierarchyId":
AddTypeHandler(type, handler = new UdtTypeHandler("HIERARCHYID"));
AddTypeHandler(type, handler = new UdtTypeHandler("hierarchyid"));
return DbType.Object;
}
if(demand)
......
......@@ -461,7 +461,7 @@ private static async Task<int> ExecuteImplAsync(IDbConnection cnn, CommandDefini
if (wasClosed) cnn.Close();
}
}
/// <summary>
/// Perform a multi mapping query with arbitrary input parameters
/// </summary>
......@@ -507,7 +507,7 @@ private static async Task<IEnumerable<TReturn>> MultiMapAsync<TReturn>(this IDbC
}
}
private static IEnumerable<T> ExecuteReaderSync<T>(IDataReader reader, Func<IDataReader, object> func, object parameters)
private static IEnumerable<T> ExecuteReaderSync<T>(IDataReader reader, Func<IDataReader, object> func, object parameters)
{
using (reader)
{
......
......@@ -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.38.0.0")]
[assembly: AssemblyFileVersion("1.38.0.0")]
[assembly: AssemblyVersion("1.39.0.0")]
[assembly: AssemblyFileVersion("1.39.0.0")]
......@@ -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.38.0.0")]
[assembly: AssemblyFileVersion("1.38.0.0")]
[assembly: AssemblyVersion("1.39.0.0")]
[assembly: AssemblyFileVersion("1.39.0.0")]
......@@ -29,7 +29,7 @@ public override void SetValue(IDbDataParameter parameter, DbGeography value)
parameter.Value = value == null ? (object)DBNull.Value : (object)SqlGeography.Parse(value.AsText());
if (parameter is SqlParameter)
{
((SqlParameter)parameter).UdtTypeName = "GEOGRAPHY";
((SqlParameter)parameter).UdtTypeName = "geography";
}
}
/// <summary>
......
......@@ -29,7 +29,7 @@ public override void SetValue(IDbDataParameter parameter, DbGeometry value)
parameter.Value = value == null ? (object)DBNull.Value : (object)SqlGeometry.Parse(value.AsText());
if (parameter is SqlParameter)
{
((SqlParameter)parameter).UdtTypeName = "GEOMETRY";
((SqlParameter)parameter).UdtTypeName = "geometry";
}
}
/// <summary>
......
......@@ -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.38.0.0")]
[assembly: AssemblyFileVersion("1.38.0.0")]
[assembly: AssemblyVersion("1.39.0.0")]
[assembly: AssemblyFileVersion("1.39.0.0")]
......@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata schemaVersion="2">
<id>Dapper.StrongName</id>
<version>1.38</version>
<version>1.39</version>
<title>Dapper dot net (strong named)</title>
<authors>Sam Saffron,Marc Gravell</authors>
<owners>Sam Saffron,Marc Gravell</owners>
......
......@@ -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.38.0.0")]
[assembly: AssemblyFileVersion("1.38.0.0")]
[assembly: AssemblyVersion("1.39.0.0")]
[assembly: AssemblyFileVersion("1.39.0.0")]
......@@ -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.38.0.0")]
[assembly: AssemblyFileVersion("1.38.0.0")]
[assembly: AssemblyVersion("1.39.0.0")]
[assembly: AssemblyFileVersion("1.39.0.0")]
......@@ -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.38.0.0")]
[assembly: AssemblyFileVersion("1.38.0.0")]
[assembly: AssemblyVersion("1.39.0.0")]
[assembly: AssemblyFileVersion("1.39.0.0")]
......@@ -3006,6 +3006,7 @@ public void TestDoubleDecimalConversions_SO18228523_Nulls()
public void TestParameterInclusionNotSensitiveToCurrentCulture()
{
// note this might fail if your database server is case-sensitive
CultureInfo current = Thread.CurrentThread.CurrentCulture;
try
{
......@@ -4145,6 +4146,7 @@ public void ExplicitConstructors()
public void Issue220_InParameterCanBeSpecifiedInAnyCase()
{
// note this might fail if your database server is case-sensitive
connection.Query<int>("select * from (select 1 as Id) as X where Id in @ids", new {Ids = new[] {1}})
.IsSequenceEqualTo(new[] {1});
}
......
......@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata schemaVersion="2">
<id>Dapper</id>
<version>1.38</version>
<version>1.39</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.39 - fix case on SQL CLR types; grid-reader should respect no-cache flags; make parameter inclusion case-insensitive
* 1.38 - specify constructor explicitly; allow value-type parameters (albeit: boxed)
* 1.37 - Reuse StringBuilder instances when possible (list parameters in particular)
* 1.36 - Fix Issue 192 (expanded parameter naming glitch) and Issue 178 (execute reader now wraps the command/reader pair, to extend the command lifetime;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册