Ejemplo n.º 1
0
        private void ReadConfig_ExecuteCode(object sender, EventArgs e)
        {
            if (_dc == null)
            {
                _dc = new ConfigDataContext(this.ConnectionString);
            }

            _dc.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues, _dc.SubQueues);
            _dc.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues, _dc.OperatorConfigs);

            _queue = _dc.SubQueues.SingleOrDefault
                         (x => x.SubQueueName == this.SubQueueName &&
                         x.Queue.QueueName == this.QueueName);

            _operator = _dc.OperatorConfigs.SingleOrDefault
                            (x => x.OperatorKey == this.OperatorKey);

            if (!this.Review)
            {
                if (_queue != null)
                {
                    _queue.NumberSinceLastEval++;
                }

                if (_operator != null)
                {
                    _operator.NumberSinceLastEval++;
                }
            }
        }
Ejemplo n.º 2
0
 partial void DeleteSubQueue(SubQueue instance);
Ejemplo n.º 3
0
 partial void UpdateSubQueue(SubQueue instance);
Ejemplo n.º 4
0
 partial void InsertSubQueue(SubQueue instance);
Ejemplo n.º 5
0
 private void detach_SubQueues(SubQueue entity)
 {
     this.SendPropertyChanging();
     entity.Queue = null;
 }
Ejemplo n.º 6
0
 private void attach_SubQueues(SubQueue entity)
 {
     this.SendPropertyChanging();
     entity.Queue = this;
 }