Business rule question

Business rule question

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


pgra posted on Friday, July 01, 2011

I'm using CSLA 4 with a WPF UI.  I have an area with ten checkboxes on my form and I want to require one of those be checked, otherwise all are invalid.  My business object has a property defined for each checkbox.  What would be the best approach for this type of business rule?

ajj3085 replied on Saturday, July 02, 2011

So you have ten boolean properites on a single bo?  A single rule which returns an Or of each property would be your best bet I'd think.  Tie it to each of the properties.

Copyright (c) Marimer LLC