.NET DbContextFactory instead of DbContext #688
petrkasnal
started this conversation in
General
Replies: 1 comment
-
I just outlined my implementation in another discussion. In short, put it in your Infrastructure project :) Edit: Just realized you're talking about DbContextFactory, not DesignTimeDbContextFactory - but I think the answer is the same (you'll want this in Infrastructure, not Application). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Im stuck on one problem. I would like use DbContextFactory. But it's problem here. Because DbContext interface - IApplicationDbContext is declared in project Application. Real DbContext is in Infrastructure project. So i cannot use DbContextFactory because i cannot use something like this IDbContextFactory. Can somebody help me please? I'm really distressed of this. Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions