Skip to content

How to create mapper with conditions #149

Answered by alirezanet
Maggus85 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Maggus85,
for the static part of your query, you can use linq and combine it with gridify using one of the extension methods like ApplyFiltering

var org = ... (some value)
var query = dataSource
                .Where(q=>q.Organizations.Any(w => w.OrganizationId == org) ) // static query
                .ApplyFiltering(gridifyQuery)  // dynamic query
                .ToList();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Maggus85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants