/// <summary> /// Executes the specified command text as nonquery. /// </summary> public int ExecuteNonQuery(string command, CommandType commandType, params IDataParameter[] @params) { using (new DatabaseContext(ConnectionString)) { return(DataAccessor <TConnection, TDataAdapter> .ExecuteNonQuery(command, commandType, @params)); } }
/// <summary> /// Executes the specified command text as nonquery. /// </summary> public int ExecuteNonQuery(CommandType commandType, List <KeyValuePair <string, IDataParameter[]> > commands) { using (new DatabaseContext(ConnectionString)) { return(DataAccessor <TConnection, TDataAdapter> .ExecuteNonQuery(commandType, commands)); } }
/// <summary> /// Executes the specified command text as nonquery. /// </summary> public int ExecuteNonQuery(string command, CommandType commandType, params IDataParameter[] @params) { using (new DatabaseContext(ConnectionString)) { System.Diagnostics.Trace.WriteLine(command); return(DataAccessor <TConnection, TDataAdapter> .ExecuteNonQuery(command, commandType, @params)); } }
/// <summary> /// Executes the specified command text as nonquery. /// </summary> public int ExecuteNonQuery(CommandType commandType, List <KeyValuePair <string, IDataParameter[]> > commands) { using (new DatabaseContext(ConnectionString)) { System.Diagnostics.Trace.WriteLine(commands.ToLinesString()); return(DataAccessor <TConnection, TDataAdapter> .ExecuteNonQuery(commandType, commands)); } }