Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare old to new value at validation in LightSwitch

Is there a possibility to compare the old value to the new one during validation.

Say you have a State on some object that is set to A and changed to B. This should only be allowed if the entity fulfills certain circumstances.

like image 437
Michael R. Avatar asked Sep 02 '10 08:09

Michael R.


1 Answers

Yes, you can access the original values by drilling into the entity.Details.Properties.[propname].OriginalValue

like image 72
Beth Massi Avatar answered Oct 16 '22 05:10

Beth Massi