Beispiel #1
0
 private Common GetEntity(DataRow dr)
 {
     Common user = new Common();
      //   user.Id = Convert.ToInt32(dr["Id"]);
     user.BeiTuijianInteral = (int)dr["BeiTuijianInteral"];
     user.NewUserIntegral = (int)dr["NewUserIntegral"];
     user.TuijianIntegral = (int)dr["TuijianIntegral"];
     user.KuiguangQQ = (int)dr["KuiguangQQ"];
     return user;
 }
Beispiel #2
0
        public void Edit(Common user)
        {
            string str = "update T_Common set [BeiTuijianInteral]=" + user.BeiTuijianInteral + ",[NewUserIntegral]=" + user.NewUserIntegral + ",[TuijianIntegral]=" + user.TuijianIntegral + ",[KuiguangQQ]="+user.KuiguangQQ+" ";

            _DBbase.ExecuteCommand(str);
        }