Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/groogiam/PetaPoco in…
Browse files Browse the repository at this point in the history
…to development

# Conflicts:
#	PetaPoco/Core/PocoData.cs
  • Loading branch information
pleb committed Sep 16, 2020
2 parents ee2ef1d + f32392b commit 5cf2641
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PetaPoco/Core/PocoData.cs
Expand Up @@ -375,6 +375,11 @@ private static void AddConverterToStack(ILGenerator il, Func<object, object> con
return delegate(object src) { return Guid.Parse((string) src); };
}

if (dstType == typeof(string) && srcType == typeof(Guid))
{
return delegate(object src) { return Convert.ToString(src); };
}

return delegate(object src) { return Convert.ChangeType(src, dstType, null); };
}

Expand Down

0 comments on commit 5cf2641

Please sign in to comment.