Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

sql_variant support query parameters and SQL Server #39

Merged
merged 2 commits into from

2 participants

@SwissCheeze

Added object mapping that would allow posting of sql_variants to via parameters without getting the "The member {0} of type {1} cannot be used as a parameter value" error. Tested locally without issue.

@SamSaffron SamSaffron merged commit 809594c into StackExchange:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 2, 2012
  1. @SwissCheeze
  2. @SwissCheeze

    Formatting.

    SwissCheeze authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  Dapper/SqlMapper.cs
View
1  Dapper/SqlMapper.cs
@@ -318,6 +318,7 @@ static SqlMapper()
typeMap[typeof(Guid?)] = DbType.Guid;
typeMap[typeof(DateTime?)] = DbType.DateTime;
typeMap[typeof(DateTimeOffset?)] = DbType.DateTimeOffset;
+ typeMap[typeof(Object)] = DbType.Object;
}
private const string LinqBinary = "System.Data.Linq.Binary";
Something went wrong with that request. Please try again.