Exemple #1
0
 public void Dispose()
 {
     if (AgencyRepository != null)
     {
         AgencyRepository.Dispose();
         AgencyRepository = null;
     }
     if (AgencyContractRepository != null)
     {
         AgencyContractRepository.Dispose();
         AgencyContractRepository = null;
     }
     if (ContractRepository != null)
     {
         ContractRepository.Dispose();
         ContractRepository = null;
     }
     if (QuotationRepository != null)
     {
         QuotationRepository.Dispose();
         QuotationRepository = null;
     }
     if (AgencyContactRepository != null)
     {
         AgencyContactRepository.Dispose();
         AgencyContactRepository = null;
     }
     if (CruiseRepository != null)
     {
         CruiseRepository.Dispose();
         CruiseRepository = null;
     }
     if (ActivityRepository != null)
     {
         ActivityRepository.Dispose();
         ActivityRepository = null;
     }
     if (AgencyNotesRepository != null)
     {
         AgencyNotesRepository.Dispose();
         AgencyNotesRepository = null;
     }
     if (RoleRepository != null)
     {
         RoleRepository.Dispose();
         RoleRepository = null;
     }
 }
Exemple #2
0
 public void Dispose()
 {
     if (BookingRepository != null)
     {
         BookingRepository.Dispose();
         BookingRepository = null;
     }
     if (CruiseRepository != null)
     {
         CruiseRepository.Dispose();
         CruiseRepository = null;
     }
     if (RoomClassRepository != null)
     {
         RoomClassRepository.Dispose();
         RoomClassRepository = null;
     }
     if (RoomTypeRepository != null)
     {
         RoomTypeRepository.Dispose();
         RoomTypeRepository = null;
     }
     if (ActivityRepository != null)
     {
         ActivityRepository.Dispose();
         ActivityRepository = null;
     }
     if (AgencyRepository != null)
     {
         AgencyRepository.Dispose();
         AgencyRepository = null;
     }
     if (AgencyContactRepository != null)
     {
         AgencyContactRepository.Dispose();
         AgencyContactRepository = null;
     }
     if (CustomerRepository != null)
     {
         CustomerRepository.Dispose();
         CustomerRepository = null;
     }
     if (GoldenDayRepository != null)
     {
         GoldenDayRepository.Dispose();
         GoldenDayRepository = null;
     }
 }
 public void Dispose()
 {
     if (MenuRepository != null)
     {
         MenuRepository.Dispose();
         MenuRepository = null;
     }
     if (RestaurantBookingRepository != null)
     {
         RestaurantBookingRepository.Dispose();
         RestaurantBookingRepository = null;
     }
     if (AgencyRepository != null)
     {
         AgencyRepository.Dispose();
         AgencyRepository = null;
     }
     if (CommissionRepository != null)
     {
         CommissionRepository.Dispose();
         CommissionRepository = null;
     }
     if (ServiceOutsideRepository != null)
     {
         ServiceOutsideRepository.Dispose();
         ServiceOutsideRepository = null;
     }
     if (GuideRepository != null)
     {
         GuideRepository.Dispose();
         GuideRepository = null;
     }
     if (AgencyContactRepository != null)
     {
         AgencyContactRepository.Dispose();
         AgencyContactRepository = null;
     }
     if (ServiceOutsideDetailRepository != null)
     {
         ServiceOutsideDetailRepository.Dispose();
         ServiceOutsideDetailRepository = null;
     }
 }
        public void Dispose()
        {
            if (AgencyContactRepository != null)
            {
                AgencyContactRepository.Dispose();
                AgencyContactRepository = null;
            }

            if (BookingRepository != null)
            {
                BookingRepository.Dispose();
                BookingRepository = null;
            }

            if (UserRepository != null)
            {
                UserRepository.Dispose();
                UserRepository = null;
            }
        }
Exemple #5
0
 public void Dispose()
 {
     if (StoreProcedureRepository != null)
     {
         StoreProcedureRepository.Dispose();
         StoreProcedureRepository = null;
     }
     if (CruiseRepository != null)
     {
         CruiseRepository.Dispose();
         CruiseRepository = null;
     }
     if (BookingRepository != null)
     {
         BookingRepository.Dispose();
         BookingRepository = null;
     }
     if (AgencyRepository != null)
     {
         AgencyRepository.Dispose();
         AgencyRepository = null;
     }
     if (AgencyContactRepository != null)
     {
         AgencyContactRepository.Dispose();
         AgencyContactRepository = null;
     }
     if (ActivityRepository != null)
     {
         ActivityRepository.Dispose();
         ActivityRepository = null;
     }
     if (UserRepository != null)
     {
         UserRepository.Dispose();
         UserRepository = null;
     }
 }
        public void Dispose()
        {
            if (UserRepository != null)
            {
                UserRepository.Dispose();
                UserRepository = null;
            }

            if (ActivityRepository != null)
            {
                ActivityRepository.Dispose();
                ActivityRepository = null;
            }

            if (AgencyContactRepository != null)
            {
                AgencyContactRepository.Dispose();
                AgencyContactRepository = null;
            }

            if (BookingRepository != null)
            {
                BookingRepository.Dispose();
                BookingRepository = null;
            }

            if (SeriesRepository != null)
            {
                SeriesRepository.Dispose();
                SeriesRepository = null;
            }

            if (AgencyRepository != null)
            {
                AgencyRepository.Dispose();
                AgencyRepository = null;
            }
        }
Exemple #7
0
 public void Dispose()
 {
     if (ActivityRepository != null)
     {
         ActivityRepository.Dispose();
         ActivityRepository = null;
     }
     if (AgencyRepository != null)
     {
         AgencyRepository.Dispose();
         AgencyRepository = null;
     }
     if (AgencyContactRepository != null)
     {
         AgencyContactRepository.Dispose();
         AgencyContactRepository = null;
     }
     if (CruiseRepository != null)
     {
         CruiseRepository.Dispose();
         CruiseRepository = null;
     }
 }
        public void Dispose()
        {
            if (AgencyRepository != null)
            {
                AgencyRepository.Dispose();
                AgencyRepository = null;
            }

            if (AgencyContactRepository != null)
            {
                AgencyContactRepository.Dispose();
                AgencyContactRepository = null;
            }

            if (SeriesRepository != null)
            {
                SeriesRepository.Dispose();
                SeriesRepository = null;
            }

            if (TripRepository != null)
            {
                TripRepository.Dispose();
                TripRepository = null;
            }

            if (RoomClassRepository != null)
            {
                RoomClassRepository.Dispose();
                RoomClassRepository = null;
            }

            if (RoomTypeRepository != null)
            {
                RoomTypeRepository.Dispose();
                RoomTypeRepository = null;
            }

            if (CruiseRepository != null)
            {
                CruiseRepository.Dispose();
                CruiseRepository = null;
            }

            if (BookingRepository != null)
            {
                BookingRepository.Dispose();
                BookingRepository = null;
            }

            if (BookingRoomRepository != null)
            {
                BookingRoomRepository.Dispose();
                BookingRoomRepository = null;
            }

            if (CustomerRepository != null)
            {
                CustomerRepository.Dispose();
                CustomerRepository = null;
            }
        }