Skip to content

Add support for projecting method groups#87

Merged
koenbeuk merged 1 commit intoEFNext:masterfrom
Flamage82:project-method-groups
Oct 1, 2023
Merged

Add support for projecting method groups#87
koenbeuk merged 1 commit intoEFNext:masterfrom
Flamage82:project-method-groups

Conversation

@Flamage82
Copy link
Contributor

This adds support for projecting method groups, closing #62.

For example:

[Projectable]
public static ProgramDto ProgramToDto(Program p) => new(
    p.Projects.Select(ProjectToDto),

There is a new test covering the basic functionality, and this change functions correctly in my own solution. I wasn't able to create a scenario where CreateDelegate wasn't wrapped by a Convert expression, hence the long expression pattern.

@koenbeuk koenbeuk merged commit 24dcbb7 into EFNext:master Oct 1, 2023
@koenbeuk
Copy link
Collaborator

koenbeuk commented Oct 1, 2023

Thanks!

@Flamage82 Flamage82 deleted the project-method-groups branch October 2, 2023 21:09
@PhenX
Copy link
Member

PhenX commented Dec 27, 2023

Hello @koenbeuk any ETA for a new release with this fix ? :)

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

Successfully merging this pull request may close these issues.

3 participants