LINQPad MethodAccessException

I am trying to use EF 4.1 with LINQPad, but when I run the query, I get the following error:

MethodAccessException: An attempt using the 'LINQPadDbConnectionFactory.CreateConnection (System.String)' method to access the 'LINQPad.Extensibility.DataContext.EntityFrameworkDbContextDriver.CreateFactoryConnection (System.String, System.Object)' method failed.

Any ideas?

+4
source share
1 answer

This is similar to a bug in the new LINQPad EF driver, which has been reorganized to use Reflection.Emit to work correctly with EF versions (4.1 and 4.2). I think I tracked it: try build 4.37.8 and let me know.

+1
source

Source: https://habr.com/ru/post/1386148/


All Articles