コード例 #1
0
 public void Disconnect()
 {
     if (_db != null)
     {
         try
         {
             _db.Detach();
         }
         catch
         { }
         finally
         {
             _db = null;
             _owningConnection = null;
             _options          = null;
         }
     }
 }
コード例 #2
0
 public async Task Disconnect(AsyncWrappingCommonArgs async)
 {
     if (_db != null)
     {
         try
         {
             await _db.Detach(async).ConfigureAwait(false);
         }
         catch
         { }
         finally
         {
             _db = null;
             _owningConnection = null;
             _options          = null;
         }
     }
 }