We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, AddOutputValue in RuleContext does not support parameter conversion like SetPropertyConvert<F,P>.
public void AddOutValue(Csla.Core.IPropertyInfo property, object value) { _outputPropertyValues.Value[property] = value; }
May be adding support for parameter conversion make it easier to use, especially when the managed field is smart types (SmartDate)?
public void AddOutValue(Csla.Core.IPropertyInfo property, object value) { if(value is not null) _outputPropertyValues.Value[property] = Csla.Utilities.CoerceValue(PrimaryProperty.Type, value.GetType(), null, value); else _outputPropertyValues.Value[property] = PrimaryProperty.DefaultValue; }
The text was updated successfully, but these errors were encountered:
That seems like a nice enhancement, thanks for the suggestion.
Sorry, something went wrong.
MarimerLLC#3251 coerce output in RuleContext.AddOutValue
96748a7
#3251 coerce output in RuleContext.AddOutValue (#3925)
fa03c4f
Add out value type conversion in rules
rrrooommmaaa
Successfully merging a pull request may close this issue.
Currently, AddOutputValue in RuleContext does not support parameter conversion like SetPropertyConvert<F,P>.
public void AddOutValue(Csla.Core.IPropertyInfo property, object value) { _outputPropertyValues.Value[property] = value; }
May be adding support for parameter conversion make it easier to use, especially when the managed field is smart types (SmartDate)?
public void AddOutValue(Csla.Core.IPropertyInfo property, object value) { if(value is not null) _outputPropertyValues.Value[property] = Csla.Utilities.CoerceValue(PrimaryProperty.Type, value.GetType(), null, value); else _outputPropertyValues.Value[property] = PrimaryProperty.DefaultValue; }
The text was updated successfully, but these errors were encountered: