예제 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _db.Dispose();
     }
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
예제 #3
0
        //Garbage Colector and Disposing off Method
        protected override void Dispose(bool disposing)
        {
            DBContextClass db = new DBContextClass();

            if (disposing)
            {
                db.Dispose();
            }
            base.Dispose(disposing);
        }