public void Edit(TuiguangQQ user) { // string str = "update T_User set [Password]='" + user.LoginPassWord + "',[Jifen]="+user.Jifen+" where [QQ]='"+user.QQ+"'"; // _DBbase.ExecuteCommand(str); }
private TuiguangQQ GetEntity(DataRow dr) { TuiguangQQ user = new TuiguangQQ(); user.Id = (int)dr["Id"]; user.UserQQ = dr["UserQQ"].ToString(); user.Tuiguang = dr["TuiguangQQ"].ToString(); user.CreatedAt =(DateTime ) dr["CreatedAt"]; return user; }