Thank you for a quick reply. If a parameter is used, data filtering doesn't affect to the result that means there is no need to use data filter implementation. Maybe I couldn't understand very well the use-cases of this concept. Does it effective only for dbcontext level?
You can try:
... IRepository<Product, Guid> _productRepository; public async Task<List<Product>> GetMyProductListAsync() { using (_dataFilter.Enable<IMustHaveCreator>()) { return await _productRepository.GetListAsync(x => x.CreatorId == CurrentUser.Id); } }
<br>