private SqlSelectClause(SqlSelectSpec selectSpec, SqlTopSpec topSpec = null, bool hasDistinct = false) : base(SqlObjectKind.SelectClause) { if (selectSpec == null) { throw new ArgumentNullException("selectSpec"); } this.SelectSpec = selectSpec; this.TopSpec = topSpec; this.HasDistinct = hasDistinct; }
public static SqlSelectClause Create(SqlSelectSpec selectSpec, SqlTopSpec topSpec = null, bool hasDistinct = false) { return(new SqlSelectClause(selectSpec, topSpec, hasDistinct)); }