Has anyone written a utility that will convert Breeze metadata (captured from entity framework data attributes) into knockout validation extensions (using knockout.validation)?
Has anyone written a utility that will convert Breeze metadata (captured from entity framework
Share
I have made an function that reads the metadata from an entity and adds validation rules.
I use the function as initializer:
It’s just a start but for the time is useful for me.
Update:
I changed the way I add validation. I share it here in case it is useful to someone:
Helper object:
The custom validator:
Using the helper at the initializer:
And setting the initializer: