Exemple #1
0
 /// <summary>
 /// exec trans callback
 /// </summary>
 /// <param name="oSQLiteTransaction">SQLiteTransaction</param>
 /// <param name="sql">sql</param>
 /// <param name="parameters">parameters</param>
 /// <returns>record count</returns>
 public static int execQueryTransCallBack(SQLiteTransaction oSQLiteTransaction, string sql,
                                          Dictionary <string, object> parameters)
 {
     return(SQLiteHelper.ExecuteNonQuery(oSQLiteTransaction, sql, parameters));
 }
Exemple #2
0
 /// <summary>
 /// exec sql
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="sql">sql</param>
 /// <param name="parameters">parameters</param>
 /// <returns>record count</returns>
 public static int execSQL(IDbConnection conn, string sql,
                           Dictionary <string, object> parameters)
 {
     return(SQLiteHelper.ExecuteNonQuery((SQLiteConnection)conn, sql, parameters));
 }