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