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