public async Task UsingConnectionAsync(Func <ConnectionContext, Task> action)
 {
     using (var conn = CreateConnection())
     {
         await conn.OpenAsync().ConfigureAwait(false);
         await action(ContextProvider.GetConnectionContext(conn, QueryOptions, BulkOptions, ReadOptions)).ConfigureAwait(false);
     }
 }
 public void UsingConnection(Action <ConnectionContext> action)
 {
     using (var conn = CreateConnection())
     {
         conn.Open();
         action(ContextProvider.GetConnectionContext(conn, QueryOptions, BulkOptions, ReadOptions));
     }
 }