我为我的实体制定了这一法典。
我想知道,用某种参考资源文件来取代硬编码案文,视用户选择的语言而定。
public class Applicant
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ApplicantID { get; set; }
[Required(ErrorMessage = "Name is required")]
[StringLength(20, MinimumLength = 3, ErrorMessage = "Name should not be longer than 20 characters.")]
[Display(Name = "First and LastName")]
public string Name { get; set; }