How can I disable caching of the query execution plan for each query in Entity Framework?

Is it possible to disable caching of query execution using entity framework?

I know that in objectQuery I can disable it for every request: https://msdn.microsoft.com/pl-pl/library/system.data.objects.objectquery.enableplancaching(v=vs.110).aspx ) But I don't see such an option in dbQuery.

I also know there are interceptors in EF 6 and I can just attach the parameter (recompile), but I can't seem to find a solution how to attach it to just one exact request, not every request in context.

+3


source to share





All Articles