How can we improve Breeze.js?

Support for Data Annotation Validators (DisplayName, ErrorMessageResourceName)

Breeze has built-in message templates and we do seem to have the option to change them via breeze.Validator.messageTemplates but having to deal with at least 2 languages on my web project means that I'll have to write my messages twice (1 for .Net and 1 for Breeze). It would be seriously awesome if Breeze could get them directly from the Data Annotation definition as I'm already using the Breeze WebApi2 and ContextProviderEF6.

For example a Model with this data annotation
[Display(ResourceType = typeof(Resources.Validations), Name = "SiteName")]
[Required(ErrorMessageResourceType = typeof(Resources.Validations), ErrorMessageResourceName = "Required")]
public string siteName { get; set; }

It would be nice if Breeze could directly get the DisplayName and the associated data annotation ErrorMessage.

24 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Ghislain shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base