Fix type conversion in ReturnValueBinder

features/nuget_autobuild
Matija Koželj 2 years ago
parent 5f48a06413
commit 1195fa1b7e

@ -89,10 +89,10 @@ namespace Connected.Data.Storage
var defaultValue = property.PropertyType.GetDefault();
if (Equals(existingValue, defaultValue))
property.SetValue(entity, parameter.Value);
property.SetValue(entity, TypeConversion.Convert(parameter.Value, property.PropertyType));
break;
case PropertyValueBehavior.AlwaysOverwrite:
property.SetValue(entity, parameter.Value);
property.SetValue(entity, TypeConversion.Convert(parameter.Value, property.PropertyType));
break;
}
}

Loading…
Cancel
Save