Change Archetype value conversion attempt to pass in the Source value to ConvertSourceToObject instead of the Data value

This commit is contained in:
Jeavon Leopold
2014-08-18 17:14:17 +01:00
parent 42efa1a3d4
commit 78ba99a52e
@@ -74,7 +74,7 @@ namespace Archetype.Models
return Attempt<T>.Succeed((T)value2);
// If ConvertDataToSource failed try ConvertSourceToObject.
var value3 = converter.ConvertSourceToObject(properyType, value, false);
var value3 = converter.ConvertSourceToObject(properyType, value2, false);
// If the value is of type T, just return it
if (value3 is T)