Esempio n. 1
0
 /// <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));
     }
 }
Esempio n. 2
0
 /// <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));
     }
 }
Esempio n. 3
0
 /// <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));
     }
 }
Esempio n. 4
0
 /// <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));
     }
 }