예제 #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));
     }
 }
예제 #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));
     }
 }
예제 #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));
     }
 }
예제 #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));
     }
 }