开发者

Compare old to new value at validation in LightSwitch

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜