/// <summary> /// 会员登录 /// </summary> /// <param name="UserName"></param> /// <param name="PassWord"></param> public user(string UserName, string PassWord) { //PassWord = (new ZKEShop.SystemFramework._MD5()).md5Encrypt(PassWord, ZKEShop.SystemFramework.GlobalConfig.PersonalPwdLength); var query = db.user.Where(o => (o.UserName == UserName || o.Email == UserName || o.UserMobile== UserName) && o.UserPwd == PassWord && (o.isActive==true)); if (query.Count() == 1) { _userDal = query.First(); _userid = _userDal.UserID; } }
public Email(DataAccess.user user, string email) { _userDal = user; emailto = email; }
public Email(DataAccess.user user) { _userDal = user; }
public user() { _userDal = new DataAccess.user(); }
partial void Deleteuser(user instance);
partial void Updateuser(user instance);
partial void Insertuser(user instance);
private void detach_user(user entity) { this.SendPropertyChanging(); entity.City = null; }
private void attach_user(user entity) { this.SendPropertyChanging(); entity.City = this; }