/// <summary> /// Creates a TopClause with the given topCount and withTies. /// This function is not called if we have both TOP and SKIP. In that case SqlSelectStatment.WriteOffsetFetch is used. /// </summary> /// <param name="topCount"></param> /// <param name="withTies"></param> internal TopClause(int topCount, bool withTies) { Debug.Assert(!withTies, "WITH TIES is not supported in Top clause"); var sqlBuilder = new SqlBuilder(); sqlBuilder.Append(topCount.ToString(CultureInfo.InvariantCulture)); this.topCount = sqlBuilder; this.withTies = withTies; }
/// <summary> /// Creates a SkipClause with the given skipCount. /// </summary> /// <param name="skipCount"></param> /// <param name="withTies"></param> internal SkipClause(int skipCount) { var sqlBuilder = new SqlBuilder(); sqlBuilder.Append(skipCount.ToString(CultureInfo.InvariantCulture)); this.skipCount = sqlBuilder; }