public override IEntity Copy() { t_user model = new t_user(); model.userId_ = this.userId; model.userName_ = this.userName; model.passWord_ = this.passWord; model.realName_ = this.realName; model.userRole_ = this.userRole; model.loginCount_ = this.loginCount; model.wrongCounts_ = this.wrongCounts; model.lastLoginTime_ = this.lastLoginTime; model.status_ = this.status; model.remark_ = this.remark; return(model); }
public override IEntity SetModel(DataRow dataRow) { t_user model = new t_user(); model.userId_ = dataRow["userId"] as string; model.userName_ = dataRow["userName"] as string; model.passWord_ = dataRow["passWord"] as string; model.realName_ = dataRow["realName"] as string; model.userRole_ = dataRow["userRole"] as string; model.loginCount_ = dataRow["loginCount"] as int?; model.wrongCounts_ = dataRow["wrongCounts"] as int?; model.lastLoginTime_ = dataRow["lastLoginTime"] as DateTime?; model.status_ = dataRow["status"] as int?; model.remark_ = dataRow["remark"] as string; return(model); }