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

EF 5 is not supported #8

Closed
borislitvak opened this issue Mar 23, 2016 · 9 comments
Closed

EF 5 is not supported #8

borislitvak opened this issue Mar 23, 2016 · 9 comments

Comments

@borislitvak
Copy link

Hi Giorgi,

I am escalating this to an issue of its own, rather than a comment to #4. Not sure you can solve this, as there is no interceptor for the DB commands in EF 5. Having said that, can we do without it, utilizing ToTraceString() for ObjectQuery/ToString() for DbQuery?

Attached is a DB-first DbContext EF 5 project/solution on top of AdventureWorks

DALForLinqPadVisualizerEF5.zip

Thanks, Boris

@Giorgi Giorgi closed this as completed in d2b7858 Mar 28, 2016
@Giorgi
Copy link
Owner

Giorgi commented Mar 28, 2016

@borislitvak Can you check if the latest commit fixes it for you?

@borislitvak
Copy link
Author

Hi Giorgi,

I am getting a System.TypeLoadException: Count load type ......IDbCommandInterceptor from assembly EntityFramework, Version=5.0.0.0.
Note that this class does not exist in EF5.

-- Boris

@borislitvak
Copy link
Author

Giorgi,
I managed to make this work with EF5.
This required a few changes. Thus far I just linked with EF5 rather than EF6.
Please give me a week or so to make a clean version and I will upload it to github.

-- Boris

@Giorgi
Copy link
Owner

Giorgi commented Mar 30, 2016

@borislitvak Your typed data context references EF5 doesn't it?

@borislitvak
Copy link
Author

yes, it does. I am referring to the context provided in the reproduction, in the zip file above.

@Giorgi
Copy link
Owner

Giorgi commented Mar 31, 2016

What query are you trying to get the Plan for?

@Giorgi
Copy link
Owner

Giorgi commented Mar 31, 2016

@borislitvak It looks like the code that detects EF5 query is failing so it tries to use EF6 to get the command. I'm not sure why it happens, Can you try debugging the code to see why it's failing?

@Giorgi
Copy link
Owner

Giorgi commented Apr 11, 2016

@borislitvak Did you get this working?

@borislitvak
Copy link
Author

Will do my best to upload tomorrow. It works for EF5 as well.

On Mon, Apr 11, 2016 at 10:07 PM, Giorgi notifications@github.com wrote:

@borislitvak https://github.com/borislitvak Did you get this working?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#8 (comment)

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