Exemple #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             this.UnitOfWork.Dispose();
             UtilityTools.Dispose();
         }
         disposedValue = true;
     }
 }
Exemple #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             UtilityTools.Dispose();
             if (this.DbContextTransaction != null)
             {
                 this.DbContextTransaction.Dispose();
                 this.DbContextTransaction = null;
             }
             this.DbContext.Dispose();
             this.DbContext = null;
         }
         disposedValue = true;
     }
 }