예제 #1
0
 public static SqlQuery Create(
     SqlSelectClause selectClause,
     SqlFromClause fromClause,
     SqlWhereClause whereClause,
     SqlGroupByClause groupByClause,
     SqlOrderbyClause orderByClause,
     SqlOffsetLimitClause offsetLimitClause)
 {
     return(new SqlQuery(selectClause, fromClause, whereClause, groupByClause, orderByClause, offsetLimitClause));
 }
예제 #2
0
        public SqlQuery(
            SqlSelectClause selectClause,
            SqlFromClause fromClause,
            SqlWhereClause whereClause,
            SqlGroupByClause groupByClause,
            SqlOrderbyClause orderbyClause,
            SqlOffsetLimitClause offsetLimitClause)
            : base(SqlObjectKind.Query)
        {
            if (selectClause == null)
            {
                throw new ArgumentNullException($"{nameof(selectClause)} must not be null.");
            }

            this.SelectClause      = selectClause;
            this.FromClause        = fromClause;
            this.WhereClause       = whereClause;
            this.GroupByClause     = groupByClause;
            this.OrderbyClause     = orderbyClause;
            this.OffsetLimitClause = offsetLimitClause;
        }