Ejemplo n.º 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);
		}
Ejemplo n.º 2
0
		public AccountsService(DefaultContext dbContext)
		{
			this.dbContext = dbContext;
		}
Ejemplo n.º 3
0
		public ClientsService(DefaultContext dbContext)
		{
			this.dbContext = dbContext;
		}
Ejemplo n.º 4
0
		public BalanceService(IFactory factory)
		{
			_factory = factory;
			_dbContext = _factory.GetDbContext();
		}
Ejemplo n.º 5
0
		public ProfitLossService(Factory factory)
		{
			_factory = factory;
			_dbContext = _factory.GetDbContext();
		}
Ejemplo n.º 6
0
		public OpeningsService(DefaultContext dbContext)
		{
			_dbContext = dbContext;
		}
Ejemplo n.º 7
0
		public ReportsService(DefaultContext dbContext)
		{
			_dbContext = dbContext;
		}
Ejemplo n.º 8
0
		public DocumentsService(DefaultContext dbContext)
		{
			_dbContext = dbContext;
		}