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

            return(ExecuteNone(cmd, ps));
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public virtual string GetInsertSQL()
 {
     return(DataUtil.BuildInsertSQL(this));
 }
Exemplo n.º 4
0
 public static void Insert(DataTable t, string type)
 {
     ExecuteTrans(DataUtil.BuildInsertSQL(t), type);
 }
Exemplo n.º 5
0
 public static int Insert(DataRow r, string type)
 {
     return(ExecuteNone(DataUtil.BuildInsertSQL(r), type));
 }