예제 #1
0
파일: Factory.cs 프로젝트: gumiz/finLiteMvc
		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;
		}