Ejemplo n.º 1
0
        public override int Visit(SqlTopSpec sqlTopSpec)
        {
            int hashCode = SqlTopSpecHashCode;

            hashCode = CombineHashes(hashCode, sqlTopSpec.TopExpresion.Accept(this));
            return(hashCode);
        }
Ejemplo n.º 2
0
        public override int Visit(SqlTopSpec sqlTopSpec)
        {
            int hashCode = SqlTopSpecHashCode;

            hashCode = CombineHashes(hashCode, sqlTopSpec.Count.GetHashCode());
            return(hashCode);
        }
Ejemplo n.º 3
0
 private SqlSelectClause(
     SqlSelectSpec selectSpec,
     SqlTopSpec topSpec = null,
     bool hasDistinct   = false)
 {
     this.SelectSpec  = selectSpec ?? throw new ArgumentNullException(nameof(selectSpec));
     this.TopSpec     = topSpec;
     this.HasDistinct = hasDistinct;
 }
        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 override SqlObject Visit(SqlTopSpec sqlTopSpec)
 {
     return(SqlTopSpec.Create(SqlNumberLiteral.Create(0)));
 }
 public static SqlSelectClause Create(SqlSelectSpec selectSpec, SqlTopSpec topSpec = null, bool hasDistinct = false)
 {
     return(new SqlSelectClause(selectSpec, topSpec, hasDistinct));
 }
 public override void Visit(SqlTopSpec sqlTopSpec)
 {
     this.writer.Write("TOP ");
     this.writer.Write(sqlTopSpec.Count);
 }
 public override void Visit(SqlTopSpec sqlTopSpec)
 {
     this.writer.Write("TOP ");
     sqlTopSpec.TopExpresion.Accept(this);
 }
 public override SqlObject Visit(SqlTopSpec sqlTopSpec)
 {
     return(SqlTopSpec.Create(0));
 }