Open Closed

Iqueryable Extra Properties #4090


User avatar
0
bumutayt created

Hi, I have my custom EmployeesService overriding IdenitityAppService and my custom repository EmployeeRepository overriding EfCoreIdentityUserRepository. I want to write a query with type of iqueryable which has extra properties in repository.

I can do this task using Identity User's default properties but the task i want to accomplish requires me to do it with the extra properties as well.

Is this doable or should i get all elements in a list and filter that list? Getting the list and filtering it after couses performance problems, so any other solution you might have for this problem would be very appreciated.

Ex: var query = await GetQueryableAsync(); query = query.Where(x => x.? ...)

  • ABP Framework version: v6.0.1
  • UI type: MVC / Jquery
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

2 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    I believe you will find the answer you are looking for here. See: https://github.com/abpframework/abp/issues/10662#issuecomment-972765041

  • User Avatar
    0
    bumutayt created

    It works, thank you for your quick responce.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09