Replies: 1 comment
-
Because containers can resolve concrete types without registration |
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
-
I am somewhat new to WPF and Prism and have a question about how DI works with regards to injecting an EF DbContext.
I have a WPF app setup and in the App.xaml.cs I have my application services registered for DI. I've noticed that I did not have to explicitly register the context class to for it to be injectable. It seems to be automatically registered somehow.
Here is the code for the DI registrations. I expected that I would have to include the DbContext, but it works the way it is. Can anyone tell me why it works without being registered?
Beta Was this translation helpful? Give feedback.
All reactions