示例#1
0
文件: Sql.cs 项目: 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);
        }
示例#2
0
文件: Sql.cs 项目: 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;
 }