I use a prism to create a modular application with plug-ins.
I have already configured sqlite with EF in a separate project, which will be included in each module.
BUT
I want my module to have a Model folder with the classes that are needed only by it, so that when loading the wpf shell, the system will create db tables for it (if they do not already exist).
How can I “inject” model classes into a class DbContextat runtime, for example, when I register views and view modes with a UnityContainer?
source
share