moozzyk/EFInteractiveViews

Change DbContext to IObjectContextAdapter in InteractiveViews.SetViewCacheFactory

Closed this issue · 3 comments

Hello, (not an issue - don't know where to say it)
Thank you for library.

Please change DbContext to IObjectContextAdapter in InteractiveViews.SetViewCacheFactory

public static void SetViewCacheFactory(IObjectContextAdapter context, DbMappingViewCacheFactory viewCacheFactory)

I my case I have to fork just for that, as we use custom dbContext implementation.

Thank you.

Regardless - you can just pass ObjectContext using the other overload:

public static void SetViewCacheFactory(ObjectContext context, DbMappingViewCacheFactory viewCacheFactory)

What do you mean by “custom dbContext implementation”?

Our context do not inherit DbContext.

you can just pass ObjectContext using the other overload

Thank you