コード例 #1
0
 public async Task DisconnectAsync(CancellationToken cancellationToken = default)
 {
     if (_db != null)
     {
         try
         {
             await _db.DetachAsync(cancellationToken).ConfigureAwait(false);
         }
         catch
         { }
         finally
         {
             _db = null;
             _owningConnection = null;
             _options          = null;
         }
     }
 }