开发者

Compare old to new value at validation in LightSwitch

开发者 https://www.devze.com 2023-01-14 18:15 出处:网络
Is there a开发者_Go百科 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 th

Is there a开发者_Go百科 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消