protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public void Dispose() { #region Hossam SkillManager.Dispose(); CourseManager.Dispose(); EmploymentTypeManager.Dispose(); UserPhotoManager.Dispose(); UserConnectionManager.Dispose(); #endregion #region Nora UserProjectManager.Dispose(); LanguageManager.Dispose(); UserLanguageManager.Dispose(); EducationManager.Dispose(); #endregion #region Wafaa ExperienceManager.Dispose(); CountryManager.Dispose(); CompanyManager.Dispose(); JobManager.Dispose(); CertificationManager.Dispose(); #endregion #region Aya PostManager.Dispose(); CommentManager.Dispose(); ReplyManager.Dispose(); PostPhotoManager.Dispose(); CommentPhotoManager.Dispose(); ReplyPhotoManager.Dispose(); #endregion ApplicationUserManager.Dispose(); ApplicationRoleManager.Dispose(); ApplicationSignInManager.Dispose(); context = null; }