protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

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

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