我正在尝试为数据库表中没有的模型创建验证字段。但我收到此错误“列名 'editPassword' 无效。”</p>
这是我的模型代码……</p>
private string _editPassword = "0";
[LocalizedDisplayName("UserPassword", NameResourceType = typeof(Languages.Names))]
[StringLength(12, MinimumLength = 6, ErrorMessageResourceName = "MinimumStringLength", ErrorMessageResourceType = typeof(Languages.Validations))]
public virtual string editPassword { get { return _editPassword; } set { _editPassword = value; } }