Business Rule that modifies property and validates?

Business Rule that modifies property and validates?

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


ajj3085 posted on Friday, October 03, 2014

I have a need for a business rule that changes the value of a property, while at the same time validates a second property.  The rules I've written so far have either changed or validated but not both, so I'm not sure if Csla will handle this correctly.  Would a rule that modifies one property and add an error result to another (the primary property) function as expected, or is this against how the framework is designed?

JonnyBee replied on Saturday, October 04, 2014

Hi,

This will work fine if you are using CSLA 4.3 or newer.

Copyright (c) Marimer LLC