Dependent Business Rules

Dependent Business Rules

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


d0tnetdude posted on Thursday, January 11, 2007

I'm just curious how others are handling this issue.  I have a business object called Task, it has a Status property and a CompletedDate property.  My business rule is that the CompletedDate is required whenever the Status is set to Closed. 

How would I make this rule work in CSLA 2.0?  I would need the rule to fire everytime Status or CompletedDate changes.

Thanks!

Brian Criswell replied on Thursday, January 11, 2007

CSLA 2.1 added a new method for adding dependent rules/properties.  Check the changelog.

Copyright (c) Marimer LLC