Exemplo n.º 1
0
        private static TableView CreateTableView([NotNull] string expression,
                                                 params IFeature[] features)
        {
            Assert.ArgumentCondition(features.Length > 0, "no feature");

            var table = (ITable)features[0].Class;

            const bool useAsConstraint = true;
            TableView  view            = TableViewFactory.Create(table, expression, useAsConstraint);

            foreach (IFeature feature in features)
            {
                view.Add(feature);
            }

            return(view);
        }