Exemplo n.º 1
0
 public static ILimitResult <T, TMe> Take <T, TMe>(this ILimitTarget <T, TMe> builder, int count)
 {
     builder.QueryBuilder.StringBuilder.DuringTake();
     builder.QueryBuilder.StringBuilder.Append(count.ToString(CultureInfo.InvariantCulture));
     builder.QueryBuilder.StringBuilder.AfterTake();
     return((ILimitResult <T, TMe>)builder);
 }
Exemplo n.º 2
0
 public static ILimitResult <T, TMe> Limit <T, TMe>(this ILimitTarget <T, TMe> builder, Expression <Func <T, TMe, int> > offset, int count)
 {
     builder.QueryBuilder.StringBuilder.DuringSkip();
     builder.QueryBuilder.AddExpression(offset.Body);
     builder.QueryBuilder.StringBuilder.DuringTake();
     builder.QueryBuilder.StringBuilder.Append(count.ToString(CultureInfo.InvariantCulture));
     builder.QueryBuilder.StringBuilder.AfterTake();
     return((ILimitResult <T, TMe>)builder);
 }
Exemplo n.º 3
0
 public static ILimitTarget <T, TMe> Skip <T, TMe>(this ILimitTarget <T, TMe> builder, int offset)
 {
     builder.QueryBuilder.StringBuilder.DuringSkip();
     builder.QueryBuilder.StringBuilder.Append(offset.ToString(CultureInfo.InvariantCulture));
     return(builder);
 }