Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dapper/SqlMapper.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -370,6 +370,10 @@ public static DbType LookupDbType(Type type, string name, bool demand, out IType
{
type = Enum.GetUnderlyingType(type);
}
if (typeHandlers.TryGetValue(type, out handler))
{
return DbType.Object;
}
if (typeMap.TryGetValue(type, out dbType))
{
return dbType;
Expand All@@ -378,10 +382,6 @@ public static DbType LookupDbType(Type type, string name, bool demand, out IType
{
return DbType.Binary;
}
if (typeHandlers.TryGetValue(type, out handler))
{
return DbType.Object;
}
if (typeof(IEnumerable).IsAssignableFrom(type))
{
return DynamicParameters.EnumerableMultiParameter;
Expand Down