Beispiel #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++;
                }
            }
        }
Beispiel #2
0
 partial void UpdateOperatorConfig(OperatorConfig instance);
Beispiel #3
0
 partial void DeleteOperatorConfig(OperatorConfig instance);
Beispiel #4
0
 partial void InsertOperatorConfig(OperatorConfig instance);