Ejemplo n.º 1
0
        /// <summary>
        /// Represents a column in the select statement.
        /// </summary>
        /// <param name="arg">Is an aliased mapped column.</param>
        public Column(OfChainer arg)
            : this(arg as Chainer)
        {
            // set column name
            if (arg != null)
            {
                _columnName = arg.Column.ColumnName;
            }

            SetArgType(arg);
        }
Ejemplo n.º 2
0
        internal ByArgument(OfChainer arg)
            : base(arg)
        {
            if (CheckNull(Arg(() => arg, arg)))
            {
                Build     = arg.Build;
                _dbColumn = arg.Column;
                _column   = arg.Column.ColumnName;
                _alias    = arg.Column.OfAlias;
                JoinType  = Wall.ByType.MappedColumn;
            }

            SetArgType(arg);
        }
Ejemplo n.º 3
0
 internal ScalarArgument(OfChainer arg)
     : this(arg as Chainer)
 {
     SetArgType(arg);
 }
Ejemplo n.º 4
0
 internal NonSelectColumnArgument(OfChainer arg)
     : this(arg as Chainer)
 {
     SetArgType(arg);
 }
Ejemplo n.º 5
0
 internal FunctionArgument(OfChainer arg)
     : this(arg as Chainer)
 {
     SetArgType(arg);
 }
Ejemplo n.º 6
0
 internal AggregateArgument(OfChainer arg)
     : this(arg as Chainer)
 {
     SetArgType(arg);
 }
Ejemplo n.º 7
0
 internal OrderingArgument(OfChainer arg)
     : this(arg as Chainer)
 {
     SetArgType(arg);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Specifies that the values in the specified column should be sorted in ascending order. ASC is the default sort order. Null values are treated as the lowest possible values.
 /// </summary>
 /// <param name="column">Is a column expression consisting of a table alias and a mapped column on which to sort the query result set.</param>
 public static OrderedChainer AsAsc(this OfChainer column)
 {
     return(new OrderedChainer(column, SortOrder.Asc));
 }
Ejemplo n.º 9
0
 internal ValueScalarArgument(OfChainer arg)
     : base(arg)
 {
 }
Ejemplo n.º 10
0
 internal NumericArgument(OfChainer arg)
     : this(arg as Chainer)
 {
     SetArgType(arg);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Defines the column collation.
 /// </summary>
 /// <param name="column">A column.</param>
 /// <param name="collation">A collaction name.</param>
 public static CollateChainer Collate(this OfChainer column, string collation = "DATABASE_DEFAULT")
 {
     return(new CollateChainer(column, collation));
 }