示例#1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
示例#2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed && disposing)
            {
                _dbContextTransaction?.Dispose();
                _context.Dispose();
            }

            _disposed = true;
        }
示例#3
0
 protected override void Dispose(bool disposing)
 {
     //   Logger.Log(LogLevel.Debug, "Starting ImmunizationsController Dispose.", "", "", "");
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
     //  Logger.Log(LogLevel.Debug, "Ending ImmunizationsController Dispose.", "", "", "");
 }
 protected override void Dispose(bool disposing)
 {
     //Logger.Log(LogLevel.Debug, "Starting Patient CommunicationController Dispose.", "", "", "");
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
     // Logger.Log(LogLevel.Debug, "Completed Patient CommunicationController Dispose.", "", "", "");
 }
示例#5
0
 protected override void Dispose(bool disposing)
 {
     // Logger.Log(LogLevel.Debug, "Starting DocumentsController Dispose.", "", "", "");
     if (disposing)
     {
         db.Dispose();
     }
     // Logger.Log(LogLevel.Debug, "Ending DocumentsController Dispose.", "", "", "");
     base.Dispose(disposing);
 }
 public void DisposeTest()
 {
     _patientService    = null;
     _unitOfWork        = null;
     _patientRepository = null;
     if (_dbpatientContext != null)
     {
         _dbpatientContext.Dispose();
     }
     _patients = null;
 }
示例#7
0
 public void Dispose()
 {
     Context.Dispose();
     GC.SuppressFinalize(this);
 }
 public void Dispose()
 {
     _context.Dispose();
 }