On an ObjectContext object, I'm using code like this to load navigation properties.
context.LoadProperty(entity, navigationProperty,
System.Data.Objects.MergeOption.AppendOnly);
I would like to disable plan caching on queries that will be generated with this kind of call ?
Is it possible ?
Is there an alternative by wrapping the context with a DBContext ?
Thanks in advance.
I solved the problem by using a DBContext.
with DisablePlanCaching extension method (inspired from the one found here) as :