示例#1
0
		public Factory()
		{
			DbContext = new DefaultContext();
			AccountsService = new AccountsService(DbContext);
			ClientsService = new ClientsService(DbContext);
			OpeningsService = new OpeningsService(DbContext);
			DocumentsService = new DocumentsService(DbContext);
			ReportsService = new ReportsService(DbContext);
			DataInitializatorService = new DataInitializatorService(DbContext);
			ProfitLossService = new ProfitLossService(this);
			BalanceService = new BalanceService(this);
			AccountsPrintService = new AccountsPrintService(this);
			OpeningsPrintService = new OpeningsPrintService(this);
			DocumentsPrintService = new DocumentsPrintService(this);
			ReportsPrintService = new ReportsPrintService(this);
			ProfitLossPrintService = new ProfitAndLossPrintService(this);
			BalancePrintService = new BalancePrintService(this);
		}
示例#2
0
		public AccountsService(DefaultContext dbContext)
		{
			this.dbContext = dbContext;
		}
示例#3
0
		public ClientsService(DefaultContext dbContext)
		{
			this.dbContext = dbContext;
		}
示例#4
0
		public BalanceService(IFactory factory)
		{
			_factory = factory;
			_dbContext = _factory.GetDbContext();
		}
示例#5
0
		public ProfitLossService(Factory factory)
		{
			_factory = factory;
			_dbContext = _factory.GetDbContext();
		}
示例#6
0
		public OpeningsService(DefaultContext dbContext)
		{
			_dbContext = dbContext;
		}
示例#7
0
		public ReportsService(DefaultContext dbContext)
		{
			_dbContext = dbContext;
		}
示例#8
0
		public DocumentsService(DefaultContext dbContext)
		{
			_dbContext = dbContext;
		}