예제 #1
0
        public override int Visit(SqlLimitSpec sqlObject)
        {
            int hashCode = SqlLimitSpecHashCode;

            hashCode = CombineHashes(hashCode, sqlObject.Limit);
            return(hashCode);
        }
예제 #2
0
        public override int Visit(SqlLimitSpec sqlObject)
        {
            int hashCode = SqlLimitSpecHashCode;

            hashCode = CombineHashes(hashCode, sqlObject.LimitExpression.Accept(this));
            return(hashCode);
        }
예제 #3
0
        private SqlOffsetLimitClause(SqlOffsetSpec offsetSpec, SqlLimitSpec limitSpec)
            : base(SqlObjectKind.OffsetLimitClause)
        {
            if (offsetSpec == null)
            {
                throw new ArgumentNullException($"{nameof(offsetSpec)}");
            }

            if (limitSpec == null)
            {
                throw new ArgumentNullException($"{nameof(limitSpec)}");
            }

            this.OffsetSpec = offsetSpec;
            this.LimitSpec  = limitSpec;
        }
 public override SqlObject Visit(SqlLimitSpec sqlObject)
 {
     return(SqlLimitSpec.Create(SqlNumberLiteral.Create(0)));
 }
 public override void Visit(SqlLimitSpec sqlObject)
 {
     this.writer.Write("LIMIT ");
     this.writer.Write(sqlObject.Limit);
 }
 public override void Visit(SqlLimitSpec sqlObject)
 {
     this.writer.Write("LIMIT ");
     sqlObject.LimitExpression.Accept(this);
 }
 public override SqlObject Visit(SqlLimitSpec sqlObject)
 {
     return(SqlLimitSpec.Create(0));
 }
예제 #8
0
 public static SqlOffsetLimitClause Create(SqlOffsetSpec offsetSpec, SqlLimitSpec limitSpec)
 {
     return(new SqlOffsetLimitClause(offsetSpec, limitSpec));
 }
 private SqlOffsetLimitClause(SqlOffsetSpec offsetSpec, SqlLimitSpec limitSpec)
 {
     this.OffsetSpec = offsetSpec ?? throw new ArgumentNullException(nameof(offsetSpec));
     this.LimitSpec  = limitSpec ?? throw new ArgumentNullException(nameof(limitSpec));
 }
 public static SqlOffsetLimitClause Create(
     SqlOffsetSpec offsetSpec,
     SqlLimitSpec limitSpec) => new SqlOffsetLimitClause(offsetSpec, limitSpec);