Пример #1
0
        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;
        }
Пример #2
0
 public static SqlSelectClause Create(SqlSelectSpec selectSpec, SqlTopSpec topSpec = null, bool hasDistinct = false)
 {
     return(new SqlSelectClause(selectSpec, topSpec, hasDistinct));
 }