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