After executing :
I need to check the result of the validation of that property, and I need to throw an error after running "PropertyHasChanged()". The error is same error generated by the Validation Routine of same property,
How I can check the validation status of a given property?
How I can execute the validation code and get the result of the validation (True/False)?
Which version of CSLA do you use and for both sync/async rules?
Assuming CSLA 4.x you can check the validity of a field by either:
1. Use INotifyDataErrorInfo
if this returns string.Empty or null there is no broken rules (with Severity=Error) else returns error message.
2. Use <bo>.BrokenRulesCollection and search for broken rules on a given property name (will give access to Error/Warning/Info).
I am using CSLA 2.0 (for .NET 2.0).
What is the method to check the validation status?
Copyright (c) Marimer LLC