Exemplo n.º 1
0
 private SqlQuery(
     SqlSelectClause selectClause,
     SqlFromClause fromClause,
     SqlWhereClause whereClause,
     SqlGroupByClause groupByClause,
     SqlOrderByClause orderByClause,
     SqlOffsetLimitClause offsetLimitClause)
 {
     this.SelectClause      = selectClause ?? throw new ArgumentNullException(nameof(selectClause));
     this.FromClause        = fromClause;
     this.WhereClause       = whereClause;
     this.GroupByClause     = groupByClause;
     this.OrderByClause     = orderByClause;
     this.OffsetLimitClause = offsetLimitClause;
 }
Exemplo n.º 2
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));
 }