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