public Sql ExecuteNonQuery(SqlCommand cmd, Action <Exception, int> callback = null) { cmd.Connection.Open(); var state = new ExecuteNonQueryState(cmd, callback); cmd.BeginExecuteNonQuery(ExecuteNonQueryCallback, state); return(this); }
public Sql ExecuteNonQuery(SqlCommand cmd, Action<Exception,int> callback = null) { cmd.Connection.Open(); var state = new ExecuteNonQueryState(cmd, callback); cmd.BeginExecuteNonQuery(ExecuteNonQueryCallback, state); return this; }