[Required(ErrorMessage="用户编号不能为空")]
public int Id { get; set; }
[Required(ErrorMessage="名称不能为空")]
[StringLength(6,ErrorMessage="用户名最大长度是6")]
public string Name { get; set; }
[Required(ErrorMessage="密码不能为空")]
public string Pwd { get; set; }
[Required(ErrorMessage = "邮箱不能为空")]
[RegularExpression(@"^w+([-+.]w+)@w+([-.]w+).w+([-.]w+)*$",ErrorMessage="邮箱格式错误")]
public string Email { get; set; }