Skip to content

Using filters for ef core conversion #72

Answered by hottabych07
hottabych07 asked this question in Q&A
Discussion options

You must be logged in to vote

@alirezanet I think I have solved this issue.

 var filterMapper = new GridifyMapper<Test>()
            .GenerateMappings()
            .AddMap("Number", w => Convert.ToString(w.Number));

_context.Test.ApplyFiltering("Number=*SomeNumber").ToList();

And it works perfectly through Convert. Thank you for your attention and hint that there is such a beautiful thing as implicit and explicit operators

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alirezanet
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@alirezanet
Comment options

@alirezanet
Comment options

@alirezanet
Comment options

@hottabych07
Comment options

@alirezanet
Comment options

Comment options

You must be logged in to vote
1 reply
@alirezanet
Comment options

Answer selected by alirezanet
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