Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (UserManager != null)
         {
             UserManager.Dispose();
             UserManager = null;
         }
         if (db != null)
         {
             db.Dispose();
             db = null;
         }
         if (adb != null)
         {
             adb.Dispose();
             adb = null;
         }
         if (dbm != null)
         {
             dbm.Dispose();
             dbm = null;
         }
     }
     base.Dispose(disposing);
 }