Activities of "hakanyanaz@gmail.com"

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>

Showing 1 to 1 of 1 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 05:21