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
Post a Comment