Business Rules for Properties with Value Conversion #3697
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment 2 replies
-
We would also like to use something like this in a Type Rule var enumvalue = (TestEnum)ReadProperty(context.Target, Root.MyEnum); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When we look at the example on p-24 of Using Csla book (Creating objects), we have a property 'MyStringEnumProperty' whose underlying field value is represented by MyEnum.
MyStringEnumProperty is used in UI but we need to access the value of MyEnum in one of our business rules. We can't pass MyEnum to a business rule since it's a string and our rule needs IPropertyInfo.
Should we change our rule's constructor? Or is there a way to access MyEnum in the business rule?
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions