Skip to content
Discussion options

You must be logged in to vote

You can use LINQKit for this:

var Data = DbContext.Set<User>().AsExpandable().Where(x => expression.Invoke(x) == "Hello").ToList();

Considering that LINQKit exists and that this is a niche use case, I don't think it makes sense to add language support for this.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@TonyValenti
Comment options

@jnm2
Comment options

jnm2 Sep 15, 2021
Collaborator

@HaloFour
Comment options

@canton7
Comment options

Comment options

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