How can I localize the Entity Framework build-in validation messages/exceptions?
问题 Beside the annotation-based validation mechanism EF provides the so-called "Facets". Meaning on a string property you could have a "Max Length" Facet (through the EF model configuration) where you specify a max-length of 80 chars. Most often this is done automatically by EF when you use a database first approach. If now the property contains more than the specified number of chars, EF will throw a DbEntityValidationResult with the message [PropName]: The field [PropName] must be a string or