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

Entity Framework 6 QueryableExtensions #44

Open
mpetito opened this issue Nov 23, 2014 · 5 comments
Open

Entity Framework 6 QueryableExtensions #44

mpetito opened this issue Nov 23, 2014 · 5 comments

Comments

@mpetito
Copy link

mpetito commented Nov 23, 2014

The LinqToQuerystring.EntityFramework library doesn't appear to work with EF6. When attempting to use $expand, I would get the following error:

Could not load type 'System.Data.Entity.DbExtensions' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

An assembly binding redirect doesn't work in this case because the Include extension method is now a member of System.Data.Entity.QueryableExtensions. Updating the nuget package to Entity Framework 6 and recompiling corrects the issue without any code changes. See commit mpetito/LinqToQuerystring@9119808

@beyond-code-github
Copy link
Owner

Thanks for the tip, I'll make sure this gets included. It may require a new package specifically for EF 6.

@giespaepen
Copy link

I just downloaded the code, updated from EF5 to EF6 and the $expand works like charm!

@lemkepf
Copy link

lemkepf commented Feb 27, 2015

+1

@cherrydev
Copy link

+1!

@Jogai
Copy link

Jogai commented Jul 11, 2016

@giespaepen Works for me too!

@beyond-code-github Could you update the nuget package with this change? I rather have a dependency on your package than on a build of my local modifications...

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

No branches or pull requests

6 participants