protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Beispiel #2
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             context.Dispose();
         }
         this.disposed = true;
     }
 }
Beispiel #3
0
 public virtual void Dispose(bool disposing)
 {
     if (disposed == false)
     {
         if (disposing == true)
         {
             _context.Dispose();
         }
     }
     disposed = true;
 }
Beispiel #4
0
 public void Dispose()
 {
     Context.Dispose();
 }