public void Dispose() { if (_dataContext != null) { _dataContext.Dispose(); _dataContext = null; } }
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); }
public SaleLogRepository(FileTracer_DataBaseContext context) { _dataContext = context; }
public ReportRepository(FileTracer_DataBaseContext context) { _dataContext = context; }
public ManagerRepository(FileTracer_DataBaseContext context) { _dataContext = context; }