Skip to content

Commit 83428d9

Browse files
committed
Mark GetPaginatedAsync as obsolete
The `GetPaginatedAsync` method in the `IRepository<TEntity, TKey>` interface has been marked as obsolete. Users are encouraged to use the new `GetAllPagingAsync` method instead. The obsolete method will be removed in a future version, and an informative message has been added to guide users.
1 parent 716c6cf commit 83428d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ClassLibrary.EFCore/Interfaces/IRepository.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Task<IQueryable<TEntity>> GetAllAsync(Func<IQueryable<TEntity>,
5656
/// <param name="pageNumber">The page number to retrieve.</param>
5757
/// <param name="pageSize">The size of the page.</param>
5858
/// <returns>A task that represents the asynchronous operation. The task result contains a PaginatedResult of TEntity.</returns>
59+
[Obsolete(message: "Use GetAllPagingAsync instead. This method will be removed in a future version.", error: false)]
5960
Task<PaginatedResult<TEntity>> GetPaginatedAsync(IQueryable<TEntity> query, int pageNumber, int pageSize);
6061

6162
/// <summary>

0 commit comments

Comments
 (0)