示例#1
0
 protected override DbCommand CreateDbCommand()
 {
     if (dbCommandProxy != null)
     {
         dbCommandProxy.Parameters.Clear();
         return(dbCommandProxy);
     }
     dbCommandProxy = new DbCommandProxy(connection.CreateCommand(), context, this);
     return(dbCommandProxy);
 }
示例#2
0
 public void FireExecuteEvent(DbCommandProxy cmd, string method, TimeSpan duration, int sqlThread)
 {
     executedEvent(new ExecutedEventArgs("Command." + method, duration, cmd, sqlThread));
 }