Hi guys
I was just wondering if anyone has any idea (and i might have missed something so it might be really obvious) how to get the broken rules for an individual property. What i would like to have is a tool tip that lists the broken rules for an individual field on the form as well as the main list of rules. Also in addition to this whether an individual property is valid or not.
I know I would loop through the broken rules collection for this information but it seems like a bit of a roundabout way of doing it.
Hey Jonny
Thanks for the reply. I have seen this interface and know what you are getting at but the problem is that this only returns the first message. I need the list of errors/messages avaiable so that i can use them.
Any ideas on doing this??
Thanks
Anthony
In CSLA 2.x there is this method: (not sure about what is CSLA 3.x yet.)
Public Overloads Function ToString(ByVal severity As RuleSeverity) As String1. You can write a similar method and pass in a Property name instead of a rule severity. By adding a new method to CSLA you always have access to it.
2. Suggest the above to Rocky - so you do not have to maintain it. <g>
Joe
var
broken = from r in this.BrokenRulesCollection where r.Property = IdProperty.Name select r;Copyright (c) Marimer LLC