Hi,
I want to use GenerateCrudService with a multitenant db.
I have 2 main role: Admin and User.
Admin can see all the data in the table.
User can see only specific data based on a custom filter.
How I can customize the QueryRequest and customize the sql query?
You can also use a GlobalRequestFilter to customize Request DTOs before they’re executed, if you need more customization than that you’ll need to create a custom AutoQuery implementation.
Please read and follow the links of @layoric’s and my responses. He’s already provided links to the available customizations options. If the existing attributes are not sufficient, the way you customize AutoQuery implementation is to create a custom AutoQuery implementation.