Skip to content

How to validate entity versus current state? #181

Closed Answered by chullybun
leandrodotec asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @leandrodotec, first up apologies for delayed response. There is currently no out-of-the-box validator to verify whether certain fields are read-only and check they have not changed. The way you have it is the long-hand way I would do for a single property. If you had more than one property then I would override the OnValidateAsync method and do there as more efficient.

The validation framework is extensible, so you could add a new if needed, even contribute it back into beef :-)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leandrodotec
Comment options

Answer selected by chullybun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants