c# - Entity Framework Data Annotation Globalization -


a sample have copied thread.

[display(name = "email", resourcetype = typeof(localization))] [required(errormessageresourcename = "required", errormessageresourcetype = typeof(localization))] [email(errormessageresourcename = "emailformaterror", errormessageresourcetype = typeof(localization))] public string email { get; set; } 

is there way me specify global errormessageresourcetype = typeof(localization)?

because have many times (at least 2 or 3 annotation every single property in every entity object).

thanks in advance.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -