1
Vote

Globally defined resource item for validation messages

description

It would be cool to have a feature to set validation message globally like:

ModelMetadataSetting.RequredErrorMessage = () => ResourceMessages.Requred; // run at user's bootstrapper task

And then use it as
...
Configure(s => s.SomeField).Required(); // global defined message will be used; user should be able to override the default message, of course.
...

comments