Exemple #1
0
        public IndexColumn(ExpressionColumn column, IndexColumnOrder order = IndexColumnOrder.Ascending)
        {
            if (column == null)
            {
                throw new ArgumentNullException(nameof(column));
            }
            if (!order.IsValid())
            {
                throw new ArgumentException($"The { nameof(IndexColumnOrder) } provided must be a valid enum.", nameof(order));
            }

            Expression = column.Expression;
            Order      = order;
        }