public NestedLoopJoinOperation(IExecutionPlanOperation predecessor, Filter filter)
        {
            Predecessor = predecessor;
            this.filter = filter;
            this.metadata = Predecessor.GetMetadata();

            log4net.Config.XmlConfigurator.Configure();
            log = LogManager.GetLogger("ExecutionPlan");
        }
Beispiel #2
0
        private ICollection<Filter> GetFilters()
        {
            var filters = new List<Filter>();

            for (int i = 0; i < filterDataGridView.Rows.Count - 1; i++)
            {
                var tableName = filterDataGridView.Rows[i].Cells[0].Value.ToString();
                var columnName = filterDataGridView.Rows[i].Cells[1].Value.ToString();
                var operatorType = OperatorConverter.ToOperator(filterDataGridView.Rows[i].Cells[2].Value.ToString());
                var value = filterDataGridView.Rows[i].Cells[3].Value.ToString();

                var filter = new Filter(tableName, columnName, operatorType, value);
                filters.Add(filter);
            }

            return filters;
        }