Пример #1
0
 public void Dispose()
 {
     if (_dataContext != null)
     {
         _dataContext.Dispose();
         _dataContext = null;
     }
 }
Пример #2
0
        public UnitOfWork()
        {
            FileTracer_DataBaseContext context = new FileTracer_DataBaseContext();

            ClientRepository  = new ClientRepository(context);
            ManagerRepository = new ManagerRepository(context);
            ProductRepository = new ProductRepository(context);
            ReportRepository  = new ReportRepository(context);
            SaleLogRepository = new SaleLogRepository(context);
        }
Пример #3
0
 public SaleLogRepository(FileTracer_DataBaseContext context)
 {
     _dataContext = context;
 }
Пример #4
0
 public ReportRepository(FileTracer_DataBaseContext context)
 {
     _dataContext = context;
 }
Пример #5
0
 public ManagerRepository(FileTracer_DataBaseContext context)
 {
     _dataContext = context;
 }