Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Expressions from Anonymous Types #38

Open
whizkidwwe1217 opened this issue Oct 17, 2018 · 1 comment
Open

Build Expressions from Anonymous Types #38

whizkidwwe1217 opened this issue Oct 17, 2018 · 1 comment

Comments

@whizkidwwe1217
Copy link

whizkidwwe1217 commented Oct 17, 2018

There are instances where I need to make projections in Entity Framework. However, projections are anonymous types. For example:
Context.Set<Person>().Select(e=> new { e.Id, e.Code, e.FirstName, e.LastName }).Where(<pass_expression_here>);
Is it possible to build expressions when the source is an anonymous type?

@dbelmont
Copy link
Owner

Hi @whizkidwwe1217,
Thanks for using the project. 😄
That's a very intriguing question. 🤔 I'll have a look and keep you posted on what I find.
Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants