예제 #1
0
 public void Dispose()
 {
     if (ClientRepository != null)
     {
         ClientRepository.Dispose();
         ClientRepository = null;
     }
     if (ManagerRepository != null)
     {
         ManagerRepository.Dispose();
         ManagerRepository = null;
     }
     if (ProductRepository != null)
     {
         ProductRepository.Dispose();
         ProductRepository = null;
     }
     if (ReportRepository != null)
     {
         ReportRepository.Dispose();
         ReportRepository = null;
     }
     if (SaleLogRepository != null)
     {
         SaleLogRepository.Dispose();
         SaleLogRepository = null;
     }
 }