public void Dispose()
        {
            if (db != null)
            {
                db.Dispose();
            }

            if (regionRepo != null)
            {
                regionRepo.Dispose();
            }
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            // clean up resources

            if (this.regionRepo != null)
            {
                regionRepo.Dispose();
            }

            if (this.warehouseRepo != null)
            {
                warehouseRepo.Dispose();
            }
        }
Ejemplo n.º 3
0
        public void Dispose()
        {
            if (events != null)
            {
                events.Dispose();
            }
            if (eventDates != null)
            {
                eventDates.Dispose();
            }
            if (eventWaves != null)
            {
                eventWaves.Dispose();
            }
            if (eventSponsors != null)
            {
                eventSponsors.Dispose();
            }
            if (eventTemplates != null)
            {
                eventTemplates.Dispose();
            }
            if (eventTemplate_PayScales != null)
            {
                eventTemplate_PayScales.Dispose();
            }
            if (eventLeads != null)
            {
                eventLeads.Dispose();
            }
            if (registrations != null)
            {
                registrations.Dispose();
            }
            if (regions != null)
            {
                regions.Dispose();
            }
            if (purchaseItems != null)
            {
                purchaseItems.Dispose();
            }
            if (eventFees != null)
            {
                eventFees.Dispose();
            }
            if (users != null)
            {
                users.Dispose();
            }
            if (roles != null)
            {
                roles.Dispose();
            }
            if (teams != null)
            {
                teams.Dispose();
            }

            GC.SuppressFinalize(this);
        }