Skip to content

Commit 2aeff1b

Browse files
committed
- Improve flexibility of base interface support for cursor navigation with non-generic ICursorPageNavigationInfo.
1 parent 131d498 commit 2aeff1b

4 files changed

Lines changed: 30 additions & 19 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
namespace RepoDb.PagingPrimitives.Common
2+
{
3+
4+
/// <summary>
5+
/// Interface representing a Decorator class for common Paging navigation info.
6+
/// </summary>
7+
public interface ICursorPageNavigationInfo : IPageNavigationInfo
8+
{
9+
/// <summary>
10+
/// The Cursor for the first item in the results of this page; can be used for forward or backward cursor navigation via first/after or last/before.
11+
/// </summary>
12+
string StartCursor { get; }
13+
14+
/// <summary>
15+
/// The Cursor for the last item in the results of this page; can be used for forward or backward cursor navigation via first/after or last/before.
16+
/// </summary>
17+
string EndCursor { get; }
18+
}
19+
}

RepoDb.PagingPrimitives/CursorPaging/ICursorPageResults.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace RepoDb.PagingPrimitives.CursorPaging
1010
/// This class represents a set of results/nodes of an edge/slice/page.
1111
/// </summary>
1212
/// <typeparam name="TEntity"></typeparam>
13-
public interface ICursorPageResults<out TEntity> : IPageNavigationInfo
13+
public interface ICursorPageResults<out TEntity> : ICursorPageNavigationInfo
1414
{
1515
/// <summary>
1616
/// The set of all ICursorResults decorator classes for TEntity model with Cursor Index values.
@@ -22,16 +22,6 @@ public interface ICursorPageResults<out TEntity> : IPageNavigationInfo
2222
/// </summary>
2323
IEnumerable<TEntity> Results { get; }
2424

25-
/// <summary>
26-
/// The Cursor for the first item in the results of this page; can be used for forward or backward cursor navigation via first/after or last/before.
27-
/// </summary>
28-
string StartCursor { get; }
29-
30-
/// <summary>
31-
/// The Cursor for the last item in the results of this page; can be used for forward or backward cursor navigation via first/after or last/before.
32-
/// </summary>
33-
string EndCursor { get; }
34-
3525
/// <summary>
3626
/// Support safe (deferred) casting to the specified Entity Type.
3727
/// </summary>

RepoDb.PagingPrimitives/RepoDbExtensions.PagingPrimitives.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;</TargetFrameworks>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
6-
<Version>1.1.5.4</Version>
7-
<AssemblyVersion>1.1.5.4</AssemblyVersion>
8-
<FileVersion>1.1.5.4</FileVersion>
6+
<Version>1.1.5.5</Version>
7+
<AssemblyVersion>1.1.5.5</AssemblyVersion>
8+
<FileVersion>1.1.5.5</FileVersion>
99
<Authors>BBernard / CajunCoding</Authors>
1010
<Company>CajunCoding</Company>
1111
<Description>The primitives and helpers needed for RepoDbExtensions.SqlServer.PagingOperations pacakge; used for working with modern pagination approaches such as Cursor based paging, as well as Offset based pagination, using the RepoDb ORM with Sql Server.</Description>
@@ -16,9 +16,10 @@
1616
<PackageTags>repodb, paging, pagination, cursor, offset, skip, take, sorting, graphql, graph-ql, hotchocolate, dapper, sqlkata</PackageTags>
1717
<PackageReleaseNotes>
1818
Release Notes:
19-
- Simplify RetrieveTotalCount param name on ICursorParams.
19+
- Improve flexibility of base interface support for cursor navigation with non-generic ICursorPageNavigationInfo.
2020

2121
Prior Release Notes:
22+
- Simplify RetrieveTotalCount param name on ICursorParams.
2223
- Fix SQL building bug not using Raw SQL as specified; improved integration tests to validate this better.
2324
- Improved raw sql parameter name to be more consistent with RepDb naming conventions.
2425
- Fix Raw SQL validation logic to handle SQL that has been formatted with line breaks.

RepoDb.SqlServer.PagingOperations/RepoDbExtensions.SqlServer.PagingOperations.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;</TargetFrameworks>
5-
<Version>1.1.5.4</Version>
6-
<AssemblyVersion>1.1.5.4</AssemblyVersion>
7-
<FileVersion>1.1.5.4</FileVersion>
5+
<Version>1.1.5.5</Version>
6+
<AssemblyVersion>1.1.5.5</AssemblyVersion>
7+
<FileVersion>1.1.5.5</FileVersion>
88
<Authors>BBernard / CajunCoding</Authors>
99
<Company>CajunCoding</Company>
1010
<Description>A set of extensions for working with modern pagination approaches such as Cursor based paging, as well as Offset based pagination, using the RepoDb ORM with Sql Server.</Description>
@@ -15,9 +15,10 @@
1515
<PackageTags>repodb, paging, pagination, cursor, offset, skip, take, sorting, graphql, graph-ql, hotchocolate, dapper, sqlkata</PackageTags>
1616
<PackageReleaseNotes>
1717
Release Notes:
18-
- Simplify RetrieveTotalCount param name on ICursorParams.
18+
- Improve flexibility of base interface support for cursor navigation with non-generic ICursorPageNavigationInfo.
1919

2020
Prior Release Notes:
21+
- Simplify RetrieveTotalCount param name on ICursorParams.
2122
- Fix SQL building bug not using Raw SQL as specified; improved integration tests to validate this better.
2223
- Improved raw sql parameter name to be more consistent with RepDb naming conventions.
2324
- Fix Raw SQL validation logic to handle SQL that has been formatted with line breaks.

0 commit comments

Comments
 (0)