public void Disconnect() { if (_db != null) { try { _db.Detach(); } catch { } finally { _db = null; _owningConnection = null; _options = null; } } }
public async Task Disconnect(AsyncWrappingCommonArgs async) { if (_db != null) { try { await _db.Detach(async).ConfigureAwait(false); } catch { } finally { _db = null; _owningConnection = null; _options = null; } } }