예제 #1
0
        override protected void InitializeBatching()
        {
            Bid.Trace("<sc.SqlDataAdapter.InitializeBatching|API> %d#\n", ObjectID);
            _commandSet = new SqlCommandSet();
            SqlCommand command = SelectCommand;

            if (null == command)
            {
                command = InsertCommand;
                if (null == command)
                {
                    command = UpdateCommand;
                    if (null == command)
                    {
                        command = DeleteCommand;
                    }
                }
            }
            if (null != command)
            {
                _commandSet.Connection     = command.Connection;
                _commandSet.Transaction    = command.Transaction;
                _commandSet.CommandTimeout = command.CommandTimeout;
            }
        }
        protected override void InitializeBatching()
        {
            Bid.Trace("<sc.SqlDataAdapter.InitializeBatching|API> %d#\n", base.ObjectID);
            this._commandSet = new SqlCommandSet();
            SqlCommand selectCommand = this.SelectCommand;

            if (selectCommand == null)
            {
                selectCommand = this.InsertCommand;
                if (selectCommand == null)
                {
                    selectCommand = this.UpdateCommand;
                    if (selectCommand == null)
                    {
                        selectCommand = this.DeleteCommand;
                    }
                }
            }
            if (selectCommand != null)
            {
                this._commandSet.Connection     = selectCommand.Connection;
                this._commandSet.Transaction    = selectCommand.Transaction;
                this._commandSet.CommandTimeout = selectCommand.CommandTimeout;
            }
        }
예제 #3
0
 override protected void TerminateBatching()
 {
     if (null != _commandSet)
     {
         _commandSet.Dispose();
         _commandSet = null;
     }
 }
 protected override void TerminateBatching()
 {
     if (this._commandSet != null)
     {
         this._commandSet.Dispose();
         this._commandSet = null;
     }
 }
예제 #5
0
        protected override void InitializeBatching()
        {
            _commandSet = new SqlCommandSet();
            SqlCommand command = SelectCommand;

            if (null == command)
            {
                command = InsertCommand;
                if (null == command)
                {
                    command = UpdateCommand;
                    if (null == command)
                    {
                        command = DeleteCommand;
                    }
                }
            }
            if (null != command)
            {
                _commandSet.Connection     = command.Connection;
                _commandSet.Transaction    = command.Transaction;
                _commandSet.CommandTimeout = command.CommandTimeout;
            }
        }
예제 #6
0
 private static void CreateCommandSet(SqlConnection connection, SqlTransaction transaction, ref SqlCommandSet commandSet)
 {
     if (commandSet != null)
         commandSet.Dispose();
     commandSet = new SqlCommandSet();
     commandSet.Connection = connection;
     commandSet.Transaction = transaction;
 }
 protected override void TerminateBatching()
 {
     if (this._commandSet != null)
     {
         this._commandSet.Dispose();
         this._commandSet = null;
     }
 }
 protected override void InitializeBatching()
 {
     Bid.Trace("<sc.SqlDataAdapter.InitializeBatching|API> %d#\n", base.ObjectID);
     this._commandSet = new SqlCommandSet();
     SqlCommand selectCommand = this.SelectCommand;
     if (selectCommand == null)
     {
         selectCommand = this.InsertCommand;
         if (selectCommand == null)
         {
             selectCommand = this.UpdateCommand;
             if (selectCommand == null)
             {
                 selectCommand = this.DeleteCommand;
             }
         }
     }
     if (selectCommand != null)
     {
         this._commandSet.Connection = selectCommand.Connection;
         this._commandSet.Transaction = selectCommand.Transaction;
         this._commandSet.CommandTimeout = selectCommand.CommandTimeout;
     }
 }
 override protected void TerminateBatching() {
     if (null != _commandSet) {
         _commandSet.Dispose();
         _commandSet = null;
     }
 }
예제 #10
0
 override protected void InitializeBatching() {
     Bid.Trace("<sc.SqlDataAdapter.InitializeBatching|API> %d#\n", ObjectID);
     _commandSet = new SqlCommandSet();
     SqlCommand command = SelectCommand;
     if (null == command) {
         command = InsertCommand;
         if (null == command) {
             command = UpdateCommand;
             if (null == command) {
                 command = DeleteCommand;
             }
         }
     }
     if (null != command) {
         _commandSet.Connection = command.Connection;
         _commandSet.Transaction = command.Transaction;
         _commandSet.CommandTimeout = command.CommandTimeout;
     }
 }