Change DbContext to IObjectContextAdapter in InteractiveViews.SetViewCacheFactory
Closed this issue · 3 comments
AlexeyBoiko commented
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.
moozzyk commented
What do you mean by “custom dbContext implementation”?
…On Mon, Oct 21, 2019 at 2:58 AM Alexey Boyko ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=AAK7JJB4IGRL7OPEZVQBDKDQPV4NZA5CNFSM4JC27NJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTD2JTA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK7JJGLAI7YIFKGKK7NLKLQPV4NZANCNFSM4JC27NJQ>
.
moozzyk commented
Regardless - you can just pass ObjectContext
using the other overload:
AlexeyBoiko commented
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