Home

Can LINQPad use EF pre-generated views?

edited August 2012
Hi,

We are using Entity Framework 4.1 and have quite a large entity model that we create pre-generated views for to get application startup performance improvements at runtime.

We also use LINQPad quite a bit to develop and test against our context using the built in Entity Framework DbContext, but executing a query for the first time takes about 90 seconds because LINQPad doesn't appear to be using our pre-generated views and has to compile the views at runtime. Subsequent executions of the same query complete in the expected time.

Is there a way to get LINQPad to use the pre-generated views? I've tried building the generated view file in a number of assemblies, including the assembly the context resides in but to no avail...

Regards,

Comments

Sign In or Register to comment.