koenbeuk / EntityFrameworkCore.Projectables

Project over properties and functions in your linq queries
MIT License
260 stars 17 forks source link

Add support for projecting method groups #87

Closed Flamage82 closed 9 months ago

Flamage82 commented 9 months ago

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 commented 9 months ago

Thanks!

PhenX commented 6 months ago

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