-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(query-repository): add missing methods with 'asNoTracking' parameter to 'QueryRepository' (#55) #56
base: master
Are you sure you want to change the base?
Conversation
…eter to 'QueryRepository' (TanvirArjel#55)
Hi @TanvirArjel, Please take a look at my pull request when you have some free time. Best Regards, |
Hi @TanvirArjel, I apologize if I distract you from your work. I also noticed that you have a Please look at the created
Best Regards, |
@dmitrii-kiselev If any query contains a select expression, the entity framework core does not track by default. This is why I have avoided those overloads. |
Hi @TanvirArjel, Thank you for your feedback. /// <summary>
/// This method returns a <see cref="PaginatedList{T}"/>.
/// </summary>
/// <typeparam name="TEntity">The type of the entity.</typeparam>
/// <param name="specification">An object of <see cref="PaginationSpecification{T}"/>.</param>
/// <param name="asNoTracking">A <see cref="bool"/> value which determines whether the return entity will be tracked by
/// EF Core context or not. Default value is false i.e tracking is enabled by default.
/// </param>
/// <param name="cancellationToken"> A <see cref="CancellationToken"/> to observe while waiting for the task to complete.</param>
/// <returns>Returns <see cref="PaginatedList{T}"/>.</returns>
/// <exception cref="ArgumentNullException">Thrown if <paramref name="specification"/> is smaller than 1.</exception>
Task<PaginatedList<TEntity>> GetListAsync<TEntity>(
PaginationSpecification<TEntity> specification,
bool asNoTracking,
CancellationToken cancellationToken = default)
where TEntity : class; There is only one: EFCore.GenericRepository/src/TanvirArjel.EFCore.QueryRepository/QueryRepository.cs Line 219 in bda2598
But for EFCore.GenericRepository/src/TanvirArjel.EFCore.QueryRepository/QueryRepository.cs Line 130 in bda2598
EFCore.GenericRepository/src/TanvirArjel.EFCore.QueryRepository/QueryRepository.cs Line 136 in bda2598
It is also necessary to add your thoughts about select expression on the wiki page or the project's home page. Best Regards, |
…g' parameter to 'QueryRepository' (TanvirArjel#55)" This reverts commit 2d04581.
…ter to 'QueryRepository' (TanvirArjel#55)
Hi @TanvirArjel, I fixed the code so it only contains the missing overload for Best Regards, |
Hi @TanvirArjel, Can we merge this, please? Best Regards, |
Closes #55