コード例 #1
0
 public LedgerAccountsController(ECERPDbContext dbContext,
                                 SignInManager <ApplicationUser> signInManager,
                                 UserManager <ApplicationUser> userManager,
                                 ILedgerAccountService ledgerAccountService) : base(dbContext, signInManager, userManager)
 {
     _ledgerAccountService = ledgerAccountService;
 }
コード例 #2
0
 public ProductCategoriesController(ECERPDbContext dbContext,
                                    SignInManager <ApplicationUser> signInManager,
                                    UserManager <ApplicationUser> userManager,
                                    IProductCategoryService productCategoryService) : base(dbContext, signInManager, userManager)
 {
     _productCategoryService = productCategoryService;
 }
コード例 #3
0
 public CitiesController(ECERPDbContext dbContext,
                         SignInManager <ApplicationUser> signInManager,
                         UserManager <ApplicationUser> userManager,
                         ICityService citiesService) : base(dbContext, signInManager, userManager)
 {
     _citiesService = citiesService;
 }
コード例 #4
0
 public CompaniesController(ECERPDbContext dbContext,
                            SignInManager <ApplicationUser> signInManager,
                            UserManager <ApplicationUser> userManager,
                            ICompanyService companyService) : base(dbContext, signInManager, userManager)
 {
     _companyService = companyService;
 }
コード例 #5
0
 public ChartOfAccountsController(ECERPDbContext dbContext,
                                  SignInManager <ApplicationUser> signInManager,
                                  UserManager <ApplicationUser> userManager,
                                  IChartOfAccountsService chartOfAccountsService) : base(dbContext, signInManager, userManager)
 {
     _chartOfAccountsService = chartOfAccountsService;
 }
コード例 #6
0
ファイル: BaseController.cs プロジェクト: manoj-malviya/ECERP
 public BaseController(ECERPDbContext dbContext,
                       SignInManager <ApplicationUser> signInManager,
                       UserManager <ApplicationUser> userManager)
 {
     // Dependency Injection
     _dbContext     = dbContext;
     _signInManager = signInManager;
     _userManager   = userManager;
 }
コード例 #7
0
 public LedgerTransactionsController(ECERPDbContext dbContext,
                                     SignInManager <ApplicationUser> signInManager,
                                     UserManager <ApplicationUser> userManager,
                                     ILedgerTransactionService transactionService,
                                     IChartOfAccountsService chartOfAccountsService,
                                     ILedgerAccountService ledgerAccountService) : base(dbContext, signInManager, userManager)
 {
     _ledgerTransactionService = transactionService;
     _chartOfAccountsService   = chartOfAccountsService;
     _ledgerAccountService     = ledgerAccountService;
 }
コード例 #8
0
        protected PersistenceTest()
        {
            var services = new ServiceCollection()
                           .AddEntityFrameworkInMemoryDatabase()
                           .AddDbContext <ECERPDbContext>(options => options.UseInMemoryDatabase("Scratch"));

            services.AddIdentity <ApplicationUser, IdentityRole>()
            .AddEntityFrameworkStores <ECERPDbContext>();
            var serviceProvider = services.BuildServiceProvider();

            _dbContext  = serviceProvider.GetRequiredService <ECERPDbContext>();
            _repository = new EntityFrameworkRepository <ECERPDbContext>(_dbContext);
        }
コード例 #9
0
 public SuppliersController(ECERPDbContext dbContext,
                            SignInManager <ApplicationUser> signInManager,
                            UserManager <ApplicationUser> userManager,
                            ICityService cityService,
                            ICompanyService companyService,
                            ISupplierSubscriptionService supplierSubscriptionService,
                            ISupplierService supplierService) : base(dbContext, signInManager, userManager)
 {
     _cityService    = cityService;
     _companyService = companyService;
     _supplierSubscriptionService = supplierSubscriptionService;
     _supplierService             = supplierService;
 }
コード例 #10
0
 public DbSeeder(ECERPDbContext dbContext,
                 RoleManager <IdentityRole> roleManager,
                 UserManager <ApplicationUser> userManager,
                 ISupplierService suppliersService,
                 ICityService citiesService,
                 ICompanyService companyService,
                 IProductService productService,
                 IProductCategoryService productCategoryService,
                 OpenIddictApplicationManager <OpenIddictApplication> applicationManager,
                 IConfiguration configuration)
 {
     _dbContext              = dbContext;
     _roleManager            = roleManager;
     _userManager            = userManager;
     _suppliersService       = suppliersService;
     _citiesService          = citiesService;
     _companyService         = companyService;
     _productService         = productService;
     _productCategoryService = productCategoryService;
     _applicationManager     = applicationManager;
     _configuration          = configuration;
 }