Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IEnumerable<IAppModule> GetAppModules()
- {
- yield return this;
- yield return new ModuleA();
- yield return new ModuleB();
- ...
- }
- public virtual void ConfigureDependencies(IServiceCollection services,IDependencyManager dependencyManager)
- {
- AssemblyContainer.Current.AddAppAssemblies(typeof(SecurityAppModule).GetTypeInfo().Assembly);
- AssemblyContainer.Current.AddAppAssemblies(typeof(OrganizationChartAppModule).GetTypeInfo().Assembly);
- ...
- }
- dependencyManager.RegisterEfCoreDbContext<ModuleAContext, SqlServerDbContextObjectsProvider>();
- dependencyManager.RegisterEfCoreDbContext<ModuleBContext, SqlServerDbContextObjectsProvider>();
Add Comment
Please, Sign In to add comment