Ejemplo n.º 1
0
        public static ColumnValueTable Combine(ColumnValueTable table1, ColumnValueTable table2)
        {
            var combinedColumns = table1.Columns.Concat(table2.Columns);
            var combinedRows    = table1.Rows.Zip(table2.Rows, (valueRow, classIDRow) => valueRow.Concat(classIDRow));

            return(new ColumnValueTable(combinedColumns, combinedRows));
        }
        public ColumnValueTable SplitValuesForComparison(IEnumerable <object> values)
        {
            ArgumentUtility.CheckNotNull("values", values);

            var valueList = values.ToList();

            return(ColumnValueTable.Combine(
                       _properties.Select(p => p.StoragePropertyDefinition.SplitValuesForComparison(valueList.Select(v => p.ValueAccessor(v))))));
        }