BusinessListBase validation

BusinessListBase validation

Old forum URL: forums.lhotka.net/forums/t/12086.aspx


signonpankaj posted on Wednesday, July 24, 2013

How do i get the BrokenRulesCollection for a property of type BusinessListBase.

Kindly help.

skagen00 replied on Wednesday, July 24, 2013

Inherently there isn't a broken rules collection for a BusinessListBase.

There are various helper methods that others use and that I know I use that provide for "AllBrokenRules" or what have you, where a list of all broken rules throughout the entire object graph can be garnered.

You could add a property on your collection to basically merge all of the broken rules of each child, but there is nothing inherently built in.

JonnyBee replied on Wednesday, July 24, 2013

Hi,

There is even a built-in helper method in BusinessRules.GetAllBrokenRules()

Copyright (c) Marimer LLC