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++; } } }
partial void UpdateOperatorConfig(OperatorConfig instance);
partial void DeleteOperatorConfig(OperatorConfig instance);
partial void InsertOperatorConfig(OperatorConfig instance);