Exemplo n.º 1
0
Arquivo: Sql.cs Projeto: benlesh/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);
        }
Exemplo n.º 2
0
Arquivo: Sql.cs Projeto: 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;
 }