Example #1
0
        private void ComfigureModules(IServiceCollection serviceCollection)
        {
            serviceCollection.AddDbContext <AppDbContext>(options =>
                                                          options.UseSqlServer(this.Configuration.GetConnectionString("DefaultConnection")));

            serviceCollection.AddTransient <IConfigurationService, ConfigurationService>();

            DataModule.ConfigureServices(serviceCollection);
            InfrastractureModule.ConfigureServices(serviceCollection);
            ApplicationModule.ConfigureServices(serviceCollection);
        }