Skip to content

.Future() and EntityFrameworkCore.Projectables #826

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

Open
jsparent-ca opened this issue Apr 6, 2025 · 1 comment
Open

.Future() and EntityFrameworkCore.Projectables #826

jsparent-ca opened this issue Apr 6, 2025 · 1 comment
Assignees

Comments

@jsparent-ca
Copy link

jsparent-ca commented Apr 6, 2025

Hi! We're using a licensed version of your extensions (really useful btw!), and we were trying to incorporate Projectables in conjunction with it.

See https://github.com/koenbeuk/EntityFrameworkCore.Projectables

So far, we couldn't do it, because methods with .Future() crashes as soon as dbContextOptions.UseProjectables() is setup on DbContext. Eveything else seems to works, AFAIK

I don't know if you ever used or touched this library, but it seems pretty awesome to implement simple Expression without all the hassle + it allows to use expression on standard use-cases like "FullName" and only fetching dependent properties from SQL (without fetching the entire object).
Ex:
[NotMapped] [Projectable] public string FullName => $"{this.FirstName} {this.LastName}".Trim();

If there is a way to do the equivalent in the ZEntity Extensions, I'd like to know and if you ever have a bit of time to check the library and made it possible to use with yours, that would be awesome.

Thanks for your time,

J.S. Parent

@JonathanMagnan JonathanMagnan self-assigned this Apr 7, 2025
@JonathanMagnan
Copy link
Member

Hello @jsparent-ca ,

Unfortunately, we have nothing similar at the moment.

We will, in a few weeks/months, contact them to try to sponsor their library. At this time, we will check with them if something can be done to make both library compatible.

Best Regards,

Jon

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

No branches or pull requests

2 participants