Exemple #1
0
 public void AddUpdateData(DataTable dt)
 {
     foreach (DataRow r in dt.Rows)
     {
         patchSQL.Append(DataUtil.BuildUpdateSQL(r));
     }
 }
Exemple #2
0
        public static int UpdateParams(DataRow r)
        {
            SqlParameter[] ps;
            string         cmd = DataUtil.BuildUpdateSQL(r, out ps);

            return(ExecuteNone(cmd, ps));
        }
Exemple #3
0
        public int Update(params DataRow[] rs)
        {
            StringBuilder b = new StringBuilder();

            foreach (DataRow r in rs)
            {
                b.Append(DataUtil.BuildUpdateSQL(r));
            }
            return((int)DataBase.ExecuteNone(b.ToString()));
        }
Exemple #4
0
        public static void Update(params DataRow[] rs)
        {
            StringBuilder b = new StringBuilder();

            foreach (DataRow r in rs)
            {
                b.Append(DataUtil.BuildUpdateSQL(r));
            }
            ExecuteTrans(b.ToString());
        }
Exemple #5
0
 public virtual string GetUpdateSQL()
 {
     return(DataUtil.BuildUpdateSQL(this));
 }
Exemple #6
0
 public int Update(DataTable t)
 {
     return((int)DataBase.ExecuteNone(DataUtil.BuildUpdateSQL(t)));
 }
Exemple #7
0
 public int Update(DataRow r)
 {
     return((int)DataBase.ExecuteNone(DataUtil.BuildUpdateSQL(r)));
 }
Exemple #8
0
 public void AddUpdateData(DataRow r)
 {
     patchSQL.Append(DataUtil.BuildUpdateSQL(r));
 }
Exemple #9
0
 public static void Update(DataTable t)
 {
     ExecuteTrans(DataUtil.BuildUpdateSQL(t));
 }
Exemple #10
0
 public static int Update(DataRow r)
 {
     return(ExecuteNone(DataUtil.BuildUpdateSQL(r)));
 }