/// <summary> /// Dispose the context instance /// </summary> /// <param name="disposing">Bool to dispose or not</param> private void Dispose(bool disposing) { if (Disposed) { return; } if (disposing) { dbDriver.CloseConnection(); GC.Collect(); Disposed = true; if (isLogging) { logger.Log($"{this.GetType().Name} has been disposed"); } } }