示例#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;
 }