예제 #1
0
        public static int InsertParams(DataRow r)
        {
            SQLiteParameter[] ps;
            string            cmd = DataUtil.BuildInsertSQL(r, out ps);

            return(ExecuteNone(cmd, ps));
        }
예제 #2
0
        public static void Insert(string type, params DataRow[] rs)
        {
            StringBuilder b = new StringBuilder();

            foreach (DataRow r in rs)
            {
                b.Append(DataUtil.BuildInsertSQL(r));
            }
            ExecuteTrans(b.ToString(), type);
        }
예제 #3
0
 public virtual string GetInsertSQL()
 {
     return(DataUtil.BuildInsertSQL(this));
 }
예제 #4
0
 public static void Insert(DataTable t, string type)
 {
     ExecuteTrans(DataUtil.BuildInsertSQL(t), type);
 }
예제 #5
0
 public static int Insert(DataRow r, string type)
 {
     return(ExecuteNone(DataUtil.BuildInsertSQL(r), type));
 }