Beispiel #1
0
 protected override void DisposeCore()
 {
     if (dbContext != null)
     {
         dbContext.Dispose();
     }
 }
Beispiel #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             iCafeEntitiesContext.Dispose();
         }
     }
     this.disposed = true;
 }