protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Beispiel #2
0
 /// <summary>
 /// Disposing
 /// </summary>
 /// <param name="disposing">Bool to dispose</param>
 public virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             dbContext.Dispose();
         }
     }
     disposed = true;
 }