Commit 00b8a2f5 authored by Marc Gravell's avatar Marc Gravell

Update to rc1 (23516 dependencies); implement test skipping (including...

Update to rc1 (23516 dependencies); implement test skipping (including case-sensntivity check); swap all explicit #if to vague #if so we can iterate without bulk changes
parent 583f98f6
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
using System.Reflection; using System.Reflection;
using System.Linq; using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;
using Xunit;
using Dapper;
namespace SqlMapper namespace SqlMapper
{ {
...@@ -71,7 +74,7 @@ static void RunPerformanceTests() ...@@ -71,7 +74,7 @@ static void RunPerformanceTests()
static void Main() static void Main()
{ {
#if DOTNET5_2 #if COREFX
Console.WriteLine("CoreCLR"); Console.WriteLine("CoreCLR");
#else #else
Console.WriteLine(".NET: " + Environment.Version); Console.WriteLine(".NET: " + Environment.Version);
...@@ -105,7 +108,7 @@ static void Main() ...@@ -105,7 +108,7 @@ static void Main()
RunPerformanceTests(); RunPerformanceTests();
#endif #endif
#if DOTNET5_2 #if COREFX
Console.WriteLine("(end of tests; press return)"); Console.WriteLine("(end of tests; press return)");
Console.ReadLine(); Console.ReadLine();
#else #else
...@@ -164,7 +167,7 @@ insert Posts ([Text],CreationDate, LastChangeDate) values (replicate('x', 2000), ...@@ -164,7 +167,7 @@ insert Posts ([Text],CreationDate, LastChangeDate) values (replicate('x', 2000),
} }
private static bool HasAttribute<T>(MemberInfo member) where T : Attribute private static bool HasAttribute<T>(MemberInfo member) where T : Attribute
{ {
#if DOTNET5_2 #if COREFX
return member.CustomAttributes.Any(x => x.AttributeType == typeof(T)); return member.CustomAttributes.Any(x => x.AttributeType == typeof(T));
#else #else
return Attribute.IsDefined(member, typeof(T), true); return Attribute.IsDefined(member, typeof(T), true);
...@@ -182,13 +185,25 @@ private static void RunTests<T>(ref int fail, ref int skip, ref int pass, ref in ...@@ -182,13 +185,25 @@ private static void RunTests<T>(ref int fail, ref int skip, ref int pass, ref in
if (activeTests.Length != 0) methods = activeTests; if (activeTests.Length != 0) methods = activeTests;
foreach (var method in methods) foreach (var method in methods)
{ {
if (HasAttribute<SkipTestAttribute>(method)) #if COREFX
var fact = (FactAttribute)method.GetCustomAttribute(typeof(FactAttribute));
#else
var fact = (FactAttribute)Attribute.GetCustomAttribute(method, typeof(FactAttribute));
#endif
if(fact == null)
{
Console.WriteLine(" - missing [Fact]");
fail++;
failNames.Add(method.Name);
continue;
}
if(!string.IsNullOrWhiteSpace(fact.Skip))
{ {
Console.WriteLine("Skipping " + method.Name); Console.WriteLine("Skipping " + method.Name);
skip++; skip++;
continue; continue;
} }
bool expectFrameworkFail = HasAttribute<FrameworkFail>(method);
Console.Write("Running " + method.Name); Console.Write("Running " + method.Name);
try try
...@@ -197,33 +212,19 @@ private static void RunTests<T>(ref int fail, ref int skip, ref int pass, ref in ...@@ -197,33 +212,19 @@ private static void RunTests<T>(ref int fail, ref int skip, ref int pass, ref in
{ {
method.Invoke(t, null); method.Invoke(t, null);
} }
if (expectFrameworkFail)
{ Console.WriteLine(" - OK!");
Console.WriteLine(" - was expected to framework-fail, but didn't"); pass++;
fail++;
failNames.Add(method.Name);
}
else
{
Console.WriteLine(" - OK!");
pass++;
}
} }
catch (TargetInvocationException tie) catch (TargetInvocationException tie)
{ {
Console.WriteLine(" - " + tie.InnerException.Message); Console.WriteLine(" - " + tie.InnerException.Message);
if (expectFrameworkFail)
{ fail++;
frameworkFail++; failNames.Add(method.Name);
} if (tie.InnerException is TypeInitializationException)
else
{ {
fail++; Console.WriteLine("> " + tie.InnerException.InnerException.Message);
failNames.Add(method.Name);
if (tie.InnerException is TypeInitializationException)
{
Console.WriteLine("> " + tie.InnerException.InnerException.Message);
}
} }
} }
catch (Exception ex) catch (Exception ex)
...@@ -240,15 +241,58 @@ private static void RunTests<T>(ref int fail, ref int skip, ref int pass, ref in ...@@ -240,15 +241,58 @@ private static void RunTests<T>(ref int fail, ref int skip, ref int pass, ref in
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class ActiveTestAttribute : Attribute {} public sealed class ActiveTestAttribute : Attribute {}
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class SkipTestAttribute : Attribute { }
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class FrameworkFail : Attribute { public sealed class FactUnlessCoreCLRAttribute : FactAttribute {
public FrameworkFail(string url) { public FactUnlessCoreCLRAttribute(string url)
{
#if COREFX
Skip = $"CoreFX: {url}";
#endif
this.Url = url; this.Url = url;
} }
public string Url { get; private set; } public string Url { get; private set; }
} }
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class FactLongRunningAttribute : FactAttribute
{
public FactLongRunningAttribute()
{
#if !LONG_RUNNING
Skip = $"Long running";
#endif
}
public string Url { get; private set; }
}
class FactUnlessCaseSensitiveDatabaseAttribute : FactAttribute
{
public FactUnlessCaseSensitiveDatabaseAttribute() : base()
{
if (IsCaseSensitive)
{
Skip = "Case sensitive database";
}
}
public static readonly bool IsCaseSensitive;
static FactUnlessCaseSensitiveDatabaseAttribute()
{
using (var conn = Program.GetOpenConnection())
{
try
{
conn.Execute("declare @i int; set @I = 1;");
}
catch (SqlException s)
{
if (s.Number == 137)
IsCaseSensitive = true;
else
throw;
}
}
}
}
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
using System.Data.SqlClient; using System.Data.SqlClient;
using Xunit; using Xunit;
#if DOTNET5_2 #if COREFX
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
#endif #endif
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
using System.Linq; using System.Linq;
using Xunit; using Xunit;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
using System.Linq; using System.Linq;
using Xunit; using Xunit;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
using System.Linq; using System.Linq;
using Xunit; using Xunit;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
using System.Linq; using System.Linq;
using Xunit; using Xunit;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
...@@ -970,12 +970,12 @@ public void Issue192_InParameterWorksWithSimilarNamesWithUnicode() ...@@ -970,12 +970,12 @@ public void Issue192_InParameterWorksWithSimilarNamesWithUnicode()
((int)rows.Field_1).IsEqualTo(2); ((int)rows.Field_1).IsEqualTo(2);
} }
[Fact] [FactUnlessCaseSensitiveDatabase]
public void Issue220_InParameterCanBeSpecifiedInAnyCase() public void Issue220_InParameterCanBeSpecifiedInAnyCase()
{ {
// note this might fail if your database server is case-sensitive // 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 } }) connection.Query<int>("select * from (select 1 as Id) as X where Id in @ids", new { Ids = new[] { 1 } })
.IsSequenceEqualTo(new[] { 1 }); .IsSequenceEqualTo(new[] { 1 });
} }
[Fact] [Fact]
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
using System.Linq; using System.Linq;
using Xunit; using Xunit;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
......
//#define POSTGRESQL // uncomment to run postgres tests //#define POSTGRESQL // uncomment to run postgres tests
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#endif #endif
#endif #endif
#if DOTNET5_2 #if COREFX
namespace System.ComponentModel { namespace System.ComponentModel {
public sealed class DescriptionAttribute : Attribute { public sealed class DescriptionAttribute : Attribute {
public DescriptionAttribute(string description) public DescriptionAttribute(string description)
...@@ -1239,7 +1239,7 @@ public void TestCustomTypeMap() ...@@ -1239,7 +1239,7 @@ public void TestCustomTypeMap()
static string GetDescriptionFromAttribute(MemberInfo member) static string GetDescriptionFromAttribute(MemberInfo member)
{ {
if (member == null) return null; if (member == null) return null;
#if DOTNET5_2 #if COREFX
var data = member.CustomAttributes.FirstOrDefault(x => x.AttributeType == typeof(DescriptionAttribute)); var data = member.CustomAttributes.FirstOrDefault(x => x.AttributeType == typeof(DescriptionAttribute));
return (string) data?.ConstructorArguments.Single().Value; return (string) data?.ConstructorArguments.Single().Value;
#else #else
...@@ -1591,7 +1591,7 @@ public void TestChangingDefaultStringTypeMappingToAnsiString() ...@@ -1591,7 +1591,7 @@ public void TestChangingDefaultStringTypeMappingToAnsiString()
Dapper.SqlMapper.AddTypeMap(typeof(string), DbType.String); // Restore Default to Unicode String Dapper.SqlMapper.AddTypeMap(typeof(string), DbType.String); // Restore Default to Unicode String
} }
#if DOTNET5_2 #if COREFX
class TransactedConnection : IDbConnection class TransactedConnection : IDbConnection
{ {
IDbConnection _conn; IDbConnection _conn;
...@@ -1787,7 +1787,7 @@ public void TestDoubleDecimalConversions_SO18228523_Nulls() ...@@ -1787,7 +1787,7 @@ public void TestDoubleDecimalConversions_SO18228523_Nulls()
private static CultureInfo ActiveCulture private static CultureInfo ActiveCulture
{ {
#if DOTNET5_2 #if COREFX
get { return CultureInfo.CurrentCulture; } get { return CultureInfo.CurrentCulture; }
set { CultureInfo.CurrentCulture = value; } set { CultureInfo.CurrentCulture = value; }
#else #else
...@@ -1796,7 +1796,7 @@ private static CultureInfo ActiveCulture ...@@ -1796,7 +1796,7 @@ private static CultureInfo ActiveCulture
#endif #endif
} }
[Fact] [FactUnlessCaseSensitiveDatabase]
public void TestParameterInclusionNotSensitiveToCurrentCulture() public void TestParameterInclusionNotSensitiveToCurrentCulture()
{ {
// note this might fail if your database server is case-sensitive // note this might fail if your database server is case-sensitive
...@@ -1851,10 +1851,7 @@ enum AnotherEnum : byte ...@@ -1851,10 +1851,7 @@ enum AnotherEnum : byte
B = 1 B = 1
} }
#if DOTNET5_2 [FactUnlessCoreCLR("https://github.com/dotnet/corefx/issues/1613")]
[FrameworkFail("https://github.com/dotnet/corefx/issues/1613")]
#endif
[Fact]
public void AdoNetEnumValue() public void AdoNetEnumValue()
{ {
using (var cmd = connection.CreateCommand()) using (var cmd = connection.CreateCommand())
...@@ -2061,7 +2058,7 @@ public class SomeType ...@@ -2061,7 +2058,7 @@ public class SomeType
public int A { get; set; } public int A { get; set; }
public string B { get; set; } public string B { get; set; }
} }
#if !DOTNET5_2 #if !COREFX
class WithInit : ISupportInitialize class WithInit : ISupportInitialize
{ {
public string Value { get; set; } public string Value { get; set; }
...@@ -2756,12 +2753,10 @@ public void SO29343103_UtcDates() ...@@ -2756,12 +2753,10 @@ public void SO29343103_UtcDates()
var date = DateTime.UtcNow; var date = DateTime.UtcNow;
var returned = connection.Query<DateTime>(sql, new { date }).Single(); var returned = connection.Query<DateTime>(sql, new { date }).Single();
var delta = returned - date; var delta = returned - date;
Assert.IsTrue(delta.TotalMilliseconds >= -1 && delta.TotalMilliseconds <= 1); Assert.IsTrue(delta.TotalMilliseconds >= -10 && delta.TotalMilliseconds <= 10);
} }
#if DOTNET5_2
[FrameworkFail("https://github.com/dotnet/corefx/issues/1612")] [FactUnlessCoreCLR("https://github.com/dotnet/corefx/issues/1612")]
#endif
[Fact]
public void Issue261_Decimals() public void Issue261_Decimals()
{ {
var parameters = new DynamicParameters(); var parameters = new DynamicParameters();
...@@ -2771,10 +2766,7 @@ public void Issue261_Decimals() ...@@ -2771,10 +2766,7 @@ public void Issue261_Decimals()
var c = parameters.Get<Decimal>("c"); var c = parameters.Get<Decimal>("c");
c.IsEqualTo(11.884M); c.IsEqualTo(11.884M);
} }
#if DOTNET5_2 [FactUnlessCoreCLR("https://github.com/dotnet/corefx/issues/1612")]
[FrameworkFail("https://github.com/dotnet/corefx/issues/1612")]
#endif
[Fact]
public void Issue261_Decimals_ADONET_SetViaBaseClass() public void Issue261_Decimals_ADONET_SetViaBaseClass()
{ {
Issue261_Decimals_ADONET(true); Issue261_Decimals_ADONET(true);
...@@ -2833,7 +2825,7 @@ public void BasicDecimals() ...@@ -2833,7 +2825,7 @@ public void BasicDecimals()
c.IsEqualTo(11.884M); c.IsEqualTo(11.884M);
} }
[SkipTest] [FactLongRunning]
public void Issue263_Timeout() public void Issue263_Timeout()
{ {
var watch = Stopwatch.StartNew(); var watch = Stopwatch.StartNew();
......
...@@ -12,14 +12,16 @@ ...@@ -12,14 +12,16 @@
} }
}, },
"commands": { "commands": {
"Dapper.DNX.Tests": "Dapper.DNX.Tests", "run": "Dapper.DNX.Tests",
"test": "xunit.runner.dnx" "test": "xunit.runner.dnx"
}, },
"compilationOptions": {
"warningsAsErrors": true
},
"frameworks": { "frameworks": {
"net45": { "net45": {
"compilationOptions": { "compilationOptions": {
"define": [ "ASYNC" ], "define": [ "ASYNC" ]
"warningsAsErrors": true
}, },
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Data": "4.0.0.0", "System.Data": "4.0.0.0",
...@@ -39,18 +41,18 @@ ...@@ -39,18 +41,18 @@
"xunit": "1.9.2" "xunit": "1.9.2"
} }
}, },
"dotnet5.2": { "dotnet5.4": {
"compilationOptions": { "compilationOptions": {
"define": [ ], "define": [ "ASYNC", "COREFX" ]
"shouldDefine": [ "ASYNC" ]
}, },
"dependencies": { "dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23225", "Microsoft.CSharp": "4.0.1-beta-23516",
"System.Collections": "4.0.11-beta-23225", "System.Runtime": "4.0.21-beta-23509",
"System.Console": "4.0.0-beta-23409", "System.Collections": "4.0.11-beta-23516",
"System.Data.SqlClient": "4.0.0-beta-23225", "System.Console": "4.0.0-beta-23516",
"System.Linq": "4.0.1-beta-23225", "System.Data.SqlClient": "4.0.0-beta-23516",
"System.Threading": "4.0.11-beta-23225", "System.Linq": "4.0.1-beta-23516",
"System.Threading": "4.0.11-beta-23516",
"xunit": "2.1.0" "xunit": "2.1.0"
} }
}, },
...@@ -65,7 +67,7 @@ ...@@ -65,7 +67,7 @@
}, },
"dnxcore50": { "dnxcore50": {
"compilationOptions": { "compilationOptions": {
"define": [ "DOTNET5_2", "ASYNC" ] "define": [ "COREFX", "ASYNC" ]
}, },
"dependencies": { "dependencies": {
"xunit": "2.1.0", "xunit": "2.1.0",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0", "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0",
"summary": "A high performance Micro-ORM", "summary": "A high performance Micro-ORM",
"description": "A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc..", "description": "A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc..",
"version": "1.50-beta1", "version": "1.50-beta2",
"title": "Dapper dot net (strong named)", "title": "Dapper dot net (strong named)",
"tags": [ "orm", "sql", "micro-orm" ], "tags": [ "orm", "sql", "micro-orm" ],
"dependencies": { "dependencies": {
...@@ -15,41 +15,40 @@ ...@@ -15,41 +15,40 @@
"../Dapper/**/*.cs" "../Dapper/**/*.cs"
], ],
"compilationOptions": { "compilationOptions": {
"keyFile": "../Dapper.snk" "keyFile": "../Dapper.snk",
"warningsAsErrors": true
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {
"compilationOptions": { "compilationOptions": {
"define": [ "ASYNC" ], "define": [ "ASYNC" ]
"warningsAsErrors": true
}, },
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Data": "4.0.0.0" "System.Data": "4.0.0.0"
} }
}, },
"net40": { "net40": {
"compilationOptions": { "warningsAsErrors": true },
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Data": "4.0.0.0" "System.Data": "4.0.0.0"
} }
}, },
"dotnet5.2": { "dotnet5.4": {
"compilationOptions": { "compilationOptions": {
"define": [ "ASYNC" ], "define": [ "ASYNC", "COREFX" ]
"warningsAsErrors": true
}, },
"dependencies": { "dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23225", "Microsoft.CSharp": "4.0.1-beta-23516",
"System.Collections": "4.0.11-beta-23409", "System.Runtime": "4.0.21-beta-23516",
"System.Collections.Concurrent": "4.0.11-beta-*", "System.Collections": "4.0.11-beta-23516",
"System.Data.SqlClient": "4.0.0-beta-23225", "System.Collections.Concurrent": "4.0.11-beta-23516",
"System.Linq": "4.0.1-beta-*", "System.Data.SqlClient": "4.0.0-beta-23516",
"System.Reflection.Emit.ILGeneration": "4.0.1-beta-*", "System.Linq": "4.0.1-beta-23516",
"System.Reflection.Emit.Lightweight": "4.0.1-beta-*", "System.Reflection.Emit.ILGeneration": "4.0.1-beta-23516",
"System.Reflection.TypeExtensions": "4.0.1-beta-23225", "System.Reflection.Emit.Lightweight": "4.0.1-beta-23516",
"System.Text.RegularExpressions": "4.0.11-beta-23409", "System.Reflection.TypeExtensions": "4.1.0-beta-23516",
"System.Threading": "4.0.11-beta-*", "System.Text.RegularExpressions": "4.0.11-beta-23516",
"System.Threading.ThreadPool": "4.0.10-beta-*" "System.Threading": "4.0.11-beta-23516",
"System.Threading.ThreadPool": "4.0.10-beta-23516"
} }
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
using System.Reflection.Emit; using System.Reflection.Emit;
using System.Threading; using System.Threading;
#if DOTNET5_2 #if COREFX
using IDbTransaction = System.Data.Common.DbTransaction; using IDbTransaction = System.Data.Common.DbTransaction;
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
......
using System; using System;
using System.Data; using System.Data;
#if !DOTNET5_2 #if !COREFX
namespace Dapper namespace Dapper
{ {
sealed class DataTableHandler : SqlMapper.ITypeHandler sealed class DataTableHandler : SqlMapper.ITypeHandler
......
using System; using System;
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
#endif #endif
......
...@@ -26,7 +26,7 @@ public DefaultTypeMap(Type type) ...@@ -26,7 +26,7 @@ public DefaultTypeMap(Type type)
Properties = GetSettableProps(type); Properties = GetSettableProps(type);
_type = type; _type = type;
} }
#if DOTNET5_2 #if COREFX
static bool IsParameterMatch(ParameterInfo[] x, ParameterInfo[] y) static bool IsParameterMatch(ParameterInfo[] x, ParameterInfo[] y)
{ {
if (ReferenceEquals(x, y)) return true; if (ReferenceEquals(x, y)) return true;
...@@ -40,7 +40,7 @@ static bool IsParameterMatch(ParameterInfo[] x, ParameterInfo[] y) ...@@ -40,7 +40,7 @@ static bool IsParameterMatch(ParameterInfo[] x, ParameterInfo[] y)
internal static MethodInfo GetPropertySetter(PropertyInfo propertyInfo, Type type) internal static MethodInfo GetPropertySetter(PropertyInfo propertyInfo, Type type)
{ {
if (propertyInfo.DeclaringType == type) return propertyInfo.GetSetMethod(true); if (propertyInfo.DeclaringType == type) return propertyInfo.GetSetMethod(true);
#if DOTNET5_2 #if COREFX
return propertyInfo.DeclaringType.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) return propertyInfo.DeclaringType.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)
.Single(x => x.Name == propertyInfo.Name .Single(x => x.Name == propertyInfo.Name
&& x.PropertyType == propertyInfo.PropertyType && x.PropertyType == propertyInfo.PropertyType
...@@ -118,7 +118,7 @@ public ConstructorInfo FindConstructor(string[] names, Type[] types) ...@@ -118,7 +118,7 @@ public ConstructorInfo FindConstructor(string[] names, Type[] types)
public ConstructorInfo FindExplicitConstructor() public ConstructorInfo FindExplicitConstructor()
{ {
var constructors = _type.GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); var constructors = _type.GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
#if DOTNET5_2 #if COREFX
var withAttr = constructors.Where(c => c.CustomAttributes.Any(x => x.AttributeType == typeof(ExplicitConstructorAttribute))).ToList(); var withAttr = constructors.Where(c => c.CustomAttributes.Any(x => x.AttributeType == typeof(ExplicitConstructorAttribute))).ToList();
#else #else
var withAttr = constructors.Where(c => c.GetCustomAttributes(typeof(ExplicitConstructorAttribute), true).Length > 0).ToList(); var withAttr = constructors.Where(c => c.GetCustomAttributes(typeof(ExplicitConstructorAttribute), true).Length > 0).ToList();
......
...@@ -8,7 +8,7 @@ partial class DynamicParameters ...@@ -8,7 +8,7 @@ partial class DynamicParameters
{ {
internal static class CachedOutputSetters<T> internal static class CachedOutputSetters<T>
{ {
#if DOTNET5_2 #if COREFX
public static readonly Dictionary<string, Action<object, DynamicParameters>> Cache = new Dictionary<string, Action<object, DynamicParameters>>(); public static readonly Dictionary<string, Action<object, DynamicParameters>> Cache = new Dictionary<string, Action<object, DynamicParameters>>();
#else #else
public static readonly Hashtable Cache = new Hashtable(); public static readonly Hashtable Cache = new Hashtable();
......
using System; using System;
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
#endif #endif
namespace Dapper namespace Dapper
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
using System.Reflection; using System.Reflection;
using System.Reflection.Emit; using System.Reflection.Emit;
#if DOTNET5_2 #if COREFX
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using ApplicationException = System.InvalidOperationException; using ApplicationException = System.InvalidOperationException;
...@@ -401,7 +401,7 @@ public DynamicParameters Output<T>(T target, Expression<Func<T, object>> express ...@@ -401,7 +401,7 @@ public DynamicParameters Output<T>(T target, Expression<Func<T, object>> express
var cache = CachedOutputSetters<T>.Cache; var cache = CachedOutputSetters<T>.Cache;
Action<object, DynamicParameters> setter; Action<object, DynamicParameters> setter;
#if DOTNET5_2 #if COREFX
lock (cache) lock (cache)
{ {
if(!cache.TryGetValue(lookup, out setter)) setter = null; if(!cache.TryGetValue(lookup, out setter)) setter = null;
......
using System; using System;
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
#endif #endif
namespace Dapper namespace Dapper
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
#if !DOTNET5_2 #if !COREFX
namespace Dapper namespace Dapper
{ {
sealed class SqlDataRecordHandler : SqlMapper.ITypeHandler sealed class SqlDataRecordHandler : SqlMapper.ITypeHandler
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Reflection; using System.Reflection;
#if !DOTNET5_2 #if !COREFX
namespace Dapper namespace Dapper
{ {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
#if DOTNET5_2 #if COREFX
using IDbTransaction = System.Data.Common.DbTransaction; using IDbTransaction = System.Data.Common.DbTransaction;
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using System.Data; using System.Data;
using System.Threading; using System.Threading;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDataReader = System.Data.Common.DbDataReader; using IDataReader = System.Data.Common.DbDataReader;
#endif #endif
......
using System; using System;
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDataReader = System.Data.Common.DbDataReader; using IDataReader = System.Data.Common.DbDataReader;
#endif #endif
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDataReader = System.Data.Common.DbDataReader; using IDataReader = System.Data.Common.DbDataReader;
#endif #endif
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
using System.Data; using System.Data;
using System.Linq; using System.Linq;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDataReader = System.Data.Common.DbDataReader; using IDataReader = System.Data.Common.DbDataReader;
#endif #endif
......
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
#endif #endif
namespace Dapper namespace Dapper
......
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
#endif #endif
......
using System; using System;
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
#endif #endif
namespace Dapper namespace Dapper
......
using System; using System;
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbConnection = System.Data.Common.DbConnection; using IDbConnection = System.Data.Common.DbConnection;
#endif #endif
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
using System.Linq; using System.Linq;
using System.Text; using System.Text;
#if DOTNET5_2 #if COREFX
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
#endif #endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
#endif #endif
...@@ -14,7 +14,7 @@ partial class SqlMapper ...@@ -14,7 +14,7 @@ partial class SqlMapper
/// Not intended for direct usage /// Not intended for direct usage
/// </summary> /// </summary>
[Obsolete("Not intended for direct usage", false)] [Obsolete("Not intended for direct usage", false)]
#if !DOTNET5_2 #if !COREFX
[Browsable(false)] [Browsable(false)]
#endif #endif
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Home page: http://code.google.com/p/dapper-dot-net/ Home page: http://code.google.com/p/dapper-dot-net/
*/ */
#if DOTNET5_2 #if COREFX
using IDbDataParameter = System.Data.Common.DbParameter; using IDbDataParameter = System.Data.Common.DbParameter;
using IDataParameter = System.Data.Common.DbParameter; using IDataParameter = System.Data.Common.DbParameter;
using IDbTransaction = System.Data.Common.DbTransaction; using IDbTransaction = System.Data.Common.DbTransaction;
...@@ -214,7 +214,7 @@ static SqlMapper() ...@@ -214,7 +214,7 @@ static SqlMapper()
[typeof(TimeSpan?)] = DbType.Time, [typeof(TimeSpan?)] = DbType.Time,
[typeof(object)] = DbType.Object [typeof(object)] = DbType.Object
}; };
#if !DOTNET5_2 #if !COREFX
AddTypeHandlerImpl(typeof(DataTable), new DataTableHandler(), false); AddTypeHandlerImpl(typeof(DataTable), new DataTableHandler(), false);
AddTypeHandlerImpl(typeof(IEnumerable<Microsoft.SqlServer.Server.SqlDataRecord>), new SqlDataRecordHandler(), false); AddTypeHandlerImpl(typeof(IEnumerable<Microsoft.SqlServer.Server.SqlDataRecord>), new SqlDataRecordHandler(), false);
#endif #endif
...@@ -226,7 +226,7 @@ static SqlMapper() ...@@ -226,7 +226,7 @@ static SqlMapper()
public static void ResetTypeHandlers() public static void ResetTypeHandlers()
{ {
typeHandlers = new Dictionary<Type, ITypeHandler>(); typeHandlers = new Dictionary<Type, ITypeHandler>();
#if !DOTNET5_2 #if !COREFX
AddTypeHandlerImpl(typeof(DataTable), new DataTableHandler(), true); AddTypeHandlerImpl(typeof(DataTable), new DataTableHandler(), true);
AddTypeHandlerImpl(typeof(IEnumerable<Microsoft.SqlServer.Server.SqlDataRecord>), new SqlDataRecordHandler(), true); AddTypeHandlerImpl(typeof(IEnumerable<Microsoft.SqlServer.Server.SqlDataRecord>), new SqlDataRecordHandler(), true);
#endif #endif
...@@ -321,7 +321,7 @@ public static void AddTypeHandler<T>(TypeHandler<T> handler) ...@@ -321,7 +321,7 @@ public static void AddTypeHandler<T>(TypeHandler<T> handler)
/// Get the DbType that maps to a given value /// Get the DbType that maps to a given value
/// </summary> /// </summary>
[Obsolete("This method is for internal use only")] [Obsolete("This method is for internal use only")]
#if !DOTNET5_2 #if !COREFX
[Browsable(false)] [Browsable(false)]
#endif #endif
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
...@@ -360,7 +360,7 @@ internal static DbType LookupDbType(Type type, string name, bool demand, out ITy ...@@ -360,7 +360,7 @@ internal static DbType LookupDbType(Type type, string name, bool demand, out ITy
return DynamicParameters.EnumerableMultiParameter; return DynamicParameters.EnumerableMultiParameter;
} }
#if !DOTNET5_2 #if !COREFX
switch (type.FullName) switch (type.FullName)
{ {
case "Microsoft.SqlServer.Types.SqlGeography": case "Microsoft.SqlServer.Types.SqlGeography":
...@@ -1401,7 +1401,7 @@ private static Exception MultiMapException(IDataRecord reader) ...@@ -1401,7 +1401,7 @@ private static Exception MultiMapException(IDataRecord reader)
/// </summary> /// </summary>
/// <param name="value"></param> /// <param name="value"></param>
/// <returns></returns> /// <returns></returns>
#if !DOTNET5_2 #if !COREFX
[Browsable(false)] [Browsable(false)]
#endif #endif
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
...@@ -1417,7 +1417,7 @@ public static char ReadChar(object value) ...@@ -1417,7 +1417,7 @@ public static char ReadChar(object value)
/// <summary> /// <summary>
/// Internal use only /// Internal use only
/// </summary> /// </summary>
#if !DOTNET5_2 #if !COREFX
[Browsable(false)] [Browsable(false)]
#endif #endif
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
...@@ -1434,7 +1434,7 @@ public static char ReadChar(object value) ...@@ -1434,7 +1434,7 @@ public static char ReadChar(object value)
/// <summary> /// <summary>
/// Internal use only /// Internal use only
/// </summary> /// </summary>
#if !DOTNET5_2 #if !COREFX
[Browsable(false)] [Browsable(false)]
#endif #endif
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
...@@ -1458,7 +1458,7 @@ public static IDbDataParameter FindOrAddParameter(IDataParameterCollection param ...@@ -1458,7 +1458,7 @@ public static IDbDataParameter FindOrAddParameter(IDataParameterCollection param
/// <summary> /// <summary>
/// Internal use only /// Internal use only
/// </summary> /// </summary>
#if !DOTNET5_2 #if !COREFX
[Browsable(false)] [Browsable(false)]
#endif #endif
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
...@@ -1637,7 +1637,7 @@ public static string Format(object value) ...@@ -1637,7 +1637,7 @@ public static string Format(object value)
{ {
switch (TypeExtensions.GetTypeCode(value.GetType())) switch (TypeExtensions.GetTypeCode(value.GetType()))
{ {
#if !DOTNET5_2 #if !COREFX
case TypeCode.DBNull: case TypeCode.DBNull:
return "null"; return "null";
#endif #endif
...@@ -2282,7 +2282,7 @@ static readonly MethodInfo ...@@ -2282,7 +2282,7 @@ static readonly MethodInfo
public static ITypeMap GetTypeMap(Type type) public static ITypeMap GetTypeMap(Type type)
{ {
if (type == null) throw new ArgumentNullException(nameof(type)); if (type == null) throw new ArgumentNullException(nameof(type));
#if DOTNET5_2 #if COREFX
ITypeMap map = null; ITypeMap map = null;
#else #else
var map = (ITypeMap)_typeMaps[type]; var map = (ITypeMap)_typeMaps[type];
...@@ -2292,7 +2292,7 @@ public static ITypeMap GetTypeMap(Type type) ...@@ -2292,7 +2292,7 @@ public static ITypeMap GetTypeMap(Type type)
lock (_typeMaps) lock (_typeMaps)
{ // double-checked; store this to avoid reflection next time we see this type { // double-checked; store this to avoid reflection next time we see this type
// since multiple queries commonly use the same domain-entity/DTO/view-model type // since multiple queries commonly use the same domain-entity/DTO/view-model type
#if DOTNET5_2 #if COREFX
if (!_typeMaps.TryGetValue(type, out map)) map = null; if (!_typeMaps.TryGetValue(type, out map)) map = null;
#else #else
map = (ITypeMap)_typeMaps[type]; map = (ITypeMap)_typeMaps[type];
...@@ -2309,7 +2309,7 @@ public static ITypeMap GetTypeMap(Type type) ...@@ -2309,7 +2309,7 @@ public static ITypeMap GetTypeMap(Type type)
} }
// use Hashtable to get free lockless reading // use Hashtable to get free lockless reading
#if DOTNET5_2 #if COREFX
private static readonly Dictionary<Type,ITypeMap> _typeMaps = new Dictionary<Type, ITypeMap>(); private static readonly Dictionary<Type,ITypeMap> _typeMaps = new Dictionary<Type, ITypeMap>();
#else #else
private static readonly Hashtable _typeMaps = new Hashtable(); private static readonly Hashtable _typeMaps = new Hashtable();
...@@ -2382,7 +2382,7 @@ public static void SetTypeMap(Type type, ITypeMap map) ...@@ -2382,7 +2382,7 @@ public static void SetTypeMap(Type type, ITypeMap map)
ConstructorInfo specializedConstructor = null; ConstructorInfo specializedConstructor = null;
#if !DOTNET5_2 #if !COREFX
bool supportInitialize = false; bool supportInitialize = false;
#endif #endif
if (type.IsValueType()) if (type.IsValueType())
...@@ -2427,7 +2427,7 @@ public static void SetTypeMap(Type type, ITypeMap map) ...@@ -2427,7 +2427,7 @@ public static void SetTypeMap(Type type, ITypeMap map)
il.Emit(OpCodes.Newobj, explicitConstr); il.Emit(OpCodes.Newobj, explicitConstr);
il.Emit(OpCodes.Stloc_1); il.Emit(OpCodes.Stloc_1);
#if !DOTNET5_2 #if !COREFX
supportInitialize = typeof(ISupportInitialize).IsAssignableFrom(type); supportInitialize = typeof(ISupportInitialize).IsAssignableFrom(type);
if (supportInitialize) if (supportInitialize)
{ {
...@@ -2449,7 +2449,7 @@ public static void SetTypeMap(Type type, ITypeMap map) ...@@ -2449,7 +2449,7 @@ public static void SetTypeMap(Type type, ITypeMap map)
{ {
il.Emit(OpCodes.Newobj, ctor); il.Emit(OpCodes.Newobj, ctor);
il.Emit(OpCodes.Stloc_1); il.Emit(OpCodes.Stloc_1);
#if !DOTNET5_2 #if !COREFX
supportInitialize = typeof(ISupportInitialize).IsAssignableFrom(type); supportInitialize = typeof(ISupportInitialize).IsAssignableFrom(type);
if (supportInitialize) if (supportInitialize)
{ {
...@@ -2643,7 +2643,7 @@ public static void SetTypeMap(Type type, ITypeMap map) ...@@ -2643,7 +2643,7 @@ public static void SetTypeMap(Type type, ITypeMap map)
il.Emit(OpCodes.Newobj, specializedConstructor); il.Emit(OpCodes.Newobj, specializedConstructor);
} }
il.Emit(OpCodes.Stloc_1); // stack is empty il.Emit(OpCodes.Stloc_1); // stack is empty
#if !DOTNET5_2 #if !COREFX
if (supportInitialize) if (supportInitialize)
{ {
il.Emit(OpCodes.Ldloc_1); il.Emit(OpCodes.Ldloc_1);
...@@ -2914,7 +2914,7 @@ public static IEqualityComparer<string> ConnectionStringComparer ...@@ -2914,7 +2914,7 @@ public static IEqualityComparer<string> ConnectionStringComparer
#if !DOTNET5_2 #if !COREFX
/// <summary> /// <summary>
/// Used to pass a DataTable as a TableValuedParameter /// Used to pass a DataTable as a TableValuedParameter
/// </summary> /// </summary>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using System.Data; using System.Data;
using System.Reflection; using System.Reflection;
#if !DOTNET5_2 #if !COREFX
namespace Dapper namespace Dapper
{ {
/// <summary> /// <summary>
......
...@@ -8,7 +8,7 @@ internal static class TypeExtensions ...@@ -8,7 +8,7 @@ internal static class TypeExtensions
{ {
public static bool IsValueType(this Type type) public static bool IsValueType(this Type type)
{ {
#if DOTNET5_2 #if COREFX
return type.GetTypeInfo().IsValueType; return type.GetTypeInfo().IsValueType;
#else #else
return type.IsValueType; return type.IsValueType;
...@@ -16,13 +16,13 @@ public static bool IsValueType(this Type type) ...@@ -16,13 +16,13 @@ public static bool IsValueType(this Type type)
} }
public static bool IsEnum(this Type type) public static bool IsEnum(this Type type)
{ {
#if DOTNET5_2 #if COREFX
return type.GetTypeInfo().IsEnum; return type.GetTypeInfo().IsEnum;
#else #else
return type.IsEnum; return type.IsEnum;
#endif #endif
} }
#if DOTNET5_2 #if COREFX
public static TypeCode GetTypeCode(Type type) public static TypeCode GetTypeCode(Type type)
{ {
if (type == null) return TypeCode.Empty; if (type == null) return TypeCode.Empty;
...@@ -63,7 +63,7 @@ public static TypeCode GetTypeCode(Type type) ...@@ -63,7 +63,7 @@ public static TypeCode GetTypeCode(Type type)
#endif #endif
public static MethodInfo GetPublicInstanceMethod(this Type type, string name, Type[] types) public static MethodInfo GetPublicInstanceMethod(this Type type, string name, Type[] types)
{ {
#if DOTNET5_2 #if COREFX
var method = type.GetMethod(name, types); var method = type.GetMethod(name, types);
return (method != null && method.IsPublic && !method.IsStatic) ? method : null; return (method != null && method.IsPublic && !method.IsStatic) ? method : null;
#else #else
......
...@@ -5,7 +5,7 @@ namespace Dapper ...@@ -5,7 +5,7 @@ namespace Dapper
{ {
partial class SqlMapper partial class SqlMapper
{ {
#if !DOTNET5_2 #if !COREFX
/// <summary> /// <summary>
/// A type handler for data-types that are supported by the underlying provider, but which need /// A type handler for data-types that are supported by the underlying provider, but which need
/// a well-known UdtTypeName to be specified /// a well-known UdtTypeName to be specified
......
using System.Data; using System.Data;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDataReader = System.Data.Common.DbDataReader; using IDataReader = System.Data.Common.DbDataReader;
#endif #endif
namespace Dapper namespace Dapper
{ {
#if DOTNET5_2 #if COREFX
/// <summary> /// <summary>
/// Describes a reader that controls the lifetime of both a command and a reader, /// Describes a reader that controls the lifetime of both a command and a reader,
/// exposing the downstream command/reader as properties. /// exposing the downstream command/reader as properties.
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
using System.Data; using System.Data;
using System.Collections; using System.Collections;
#if DOTNET5_2 #if COREFX
using IDbCommand = System.Data.Common.DbCommand; using IDbCommand = System.Data.Common.DbCommand;
using IDataReader = System.Data.Common.DbDataReader; using IDataReader = System.Data.Common.DbDataReader;
#endif #endif
namespace Dapper namespace Dapper
{ {
#if DOTNET5_2 #if COREFX
internal class WrappedReader : WrappedDataReader internal class WrappedReader : WrappedDataReader
{ {
private IDbCommand cmd; private IDbCommand cmd;
......
...@@ -5,17 +5,19 @@ ...@@ -5,17 +5,19 @@
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0", "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0",
"summary": "A high performance Micro-ORM", "summary": "A high performance Micro-ORM",
"description": "A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc..", "description": "A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc..",
"version": "1.50-beta1", "version": "1.50-beta2",
"title": "Dapper dot net", "title": "Dapper dot net",
"tags": [ "orm", "sql", "micro-orm" ], "tags": [ "orm", "sql", "micro-orm" ],
"dependencies": { "dependencies": {
}, },
"releaseNotes": "http://stackexchange.github.io/dapper-dot-net/", "releaseNotes": "http://stackexchange.github.io/dapper-dot-net/",
"compilationOptions": {
"warningsAsErrors": true
},
"frameworks": { "frameworks": {
"net45": { "net45": {
"compilationOptions": { "compilationOptions": {
"define": [ "ASYNC" ], "define": [ "ASYNC" ]
"warningsAsErrors": true
}, },
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Data": "4.0.0.0", "System.Data": "4.0.0.0",
...@@ -23,29 +25,28 @@ ...@@ -23,29 +25,28 @@
} }
}, },
"net40": { "net40": {
"compilationOptions": { "warningsAsErrors": true },
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Data": "4.0.0.0", "System.Data": "4.0.0.0",
"System.Xml": "4.0.0.0" "System.Xml": "4.0.0.0"
} }
}, },
"dotnet5.2": { "dotnet5.4": {
"compilationOptions": { "compilationOptions": {
"define": [ "ASYNC" ], "define": [ "ASYNC", "COREFX" ]
"warningsAsErrors": true
}, },
"dependencies": { "dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23225", "Microsoft.CSharp": "4.0.1-beta-23516",
"System.Collections": "4.0.11-beta-23409", "System.Runtime": "4.0.21-beta-23516",
"System.Collections.Concurrent": "4.0.11-beta-*", "System.Collections": "4.0.11-beta-23516",
"System.Data.SqlClient": "4.0.0-beta-23225", "System.Collections.Concurrent": "4.0.11-beta-23516",
"System.Linq": "4.0.1-beta-*", "System.Data.SqlClient": "4.0.0-beta-23516",
"System.Reflection.Emit.ILGeneration": "4.0.1-beta-*", "System.Linq": "4.0.1-beta-23516",
"System.Reflection.Emit.Lightweight": "4.0.1-beta-*", "System.Reflection.Emit.ILGeneration": "4.0.1-beta-23516",
"System.Reflection.TypeExtensions": "4.0.1-beta-23225", "System.Reflection.Emit.Lightweight": "4.0.1-beta-23516",
"System.Text.RegularExpressions": "4.0.11-beta-23409", "System.Reflection.TypeExtensions": "4.1.0-beta-23516",
"System.Threading": "4.0.11-beta-*", "System.Text.RegularExpressions": "4.0.11-beta-23516",
"System.Threading.ThreadPool": "4.0.10-beta-*" "System.Threading": "4.0.11-beta-23516",
"System.Threading.ThreadPool": "4.0.10-beta-23516"
} }
} }
} }
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<configuration> <configuration>
<packageSources> <packageSources>
<clear /> <clear />
<!--
<add key="CoreCLR" value="https://www.myget.org/F/dotnet-coreclr/api/v3/index.json" /> <add key="CoreCLR" value="https://www.myget.org/F/dotnet-coreclr/api/v3/index.json" />
-->
<add key="NuGet" value="https://api.nuget.org/v3/index.json" /> <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
</packageSources> </packageSources>
</configuration> </configuration>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment