Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Run rule only if property value has changed since loaded

$
0
0

I have a rule that should only run if the property value has changed since the object was fetched from the database.  I do need to call CheckRules though before the end of the DP_F method.

Is there a way to suppress just this one rule from CheckRules? 

If not, I was thinking of creating a PropertyInfo field and private instance property who's only purpose is to hold the value from the DB, and the rule would use this value as one of the input properties to determine if it should run or not.  Would there be anything wrong with such an approach?


Viewing all articles
Browse latest Browse all 764

Trending Articles