Exemple #1
0
        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);
        }
Exemple #2
0
Fichier : Sql.cs Projet : blesh/ALE
 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;
 }