Esempio n. 1
0
 public static SqlQuery Create(
     SqlSelectClause selectClause,
     SqlFromClause fromClause,
     SqlWhereClause whereClause,
     SqlGroupByClause groupByClause,
     SqlOrderbyClause orderByClause,
     SqlOffsetLimitClause offsetLimitClause) => new SqlQuery(
     selectClause,
     fromClause,
     whereClause,
     groupByClause,
     orderByClause,
     offsetLimitClause);
Esempio n. 2
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;
 }