My application is about an ASP.NET Core MVC website, with data-access models and resource files within a separate DLL with this structure
My Address
class is:
public class Address
{
public int Id { get; set; }
[Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(???))]
public string Name { get; set; }
}
The main issue I have: how can I add the two different languages in the ErrorMessageResourceType
ValidationAttribute
?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…