/// <summary> /// Represents a column in the select statement. /// </summary> /// <param name="arg">Is a COLLATE expression.</param> public Column(CollateChainer arg) : this(arg as Chainer) { if (CheckNull(Arg(() => arg, arg))) { Build = (buildContext, buildArgs) => { var sql = arg.Build(buildContext, buildArgs); _columnName = ((IColumnName)arg).ColumnName; return(sql); }; } SetArgType(arg); }
/// <summary> /// Specifies that the values in the specified column should be sorted in descending order. Null values are treated as the lowest possible values. /// </summary> /// <param name="column">Is a column expression of a specified collation on which to sort the query result set.</param> public static OrderedChainer AsDesc(this CollateChainer column) { return(new OrderedChainer(column, SortOrder.Desc)); }
internal ScalarArgument(CollateChainer arg) : this(arg as Chainer) { SetArgType(arg); }
internal ValueScalarArgument(CollateChainer arg) : base(arg) { }