Guest User

Untitled

a guest
Jun 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public IEnumerable<IAppModule> GetAppModules()
  2. {
  3. yield return this;
  4. yield return new ModuleA();
  5. yield return new ModuleB();
  6. ...
  7. }
  8.  
  9. public virtual void ConfigureDependencies(IServiceCollection services,IDependencyManager dependencyManager)
  10. {
  11. AssemblyContainer.Current.AddAppAssemblies(typeof(SecurityAppModule).GetTypeInfo().Assembly);
  12.  
  13.  
  14. AssemblyContainer.Current.AddAppAssemblies(typeof(OrganizationChartAppModule).GetTypeInfo().Assembly);
  15. ...
  16. }
  17.  
  18. dependencyManager.RegisterEfCoreDbContext<ModuleAContext, SqlServerDbContextObjectsProvider>();
  19.  
  20. dependencyManager.RegisterEfCoreDbContext<ModuleBContext, SqlServerDbContextObjectsProvider>();
Add Comment
Please, Sign In to add comment