title: Windows forms GUI stuck when calling Dapper ExecuteAsync
body: <p>I'm trying to use Dapper async features to keep my windows forms client application responsive. I call the asycn method but the GUI gets stuck as it was synchronous code.</p>
  
  <p>I am using an access mdb database and I have my data access code in a class library but here I have a simpler case to demonstrate the issue.</p>
  
  <p>In the form, I have a button click event handler like:</p>
  
  <pre class="lang-cs prettyprint-override"><code>private async void button1_Click(object sender, EventArgs e)
  {
      await DBTest();
  
      MessageBox.Show("Done");
  }
  </code></pre>
  
  <p>and the async method is something like </p>
  
  <pre class="lang-cs prettyprint-override"><code>private static async Task DBTest()
  {
      OleDbConnection connection = new OleDbConnection();
  
      //Connection string is stored somewhere
      connection.ConnectionString = connectionString;
  
      await connection.OpenAsync().ConfigureAwait(false);
  
      //GUI stuck here until ExecuteAsync is done!
      await connection.ExecuteAsync("Delete from table1"); 
  
      connection.Close();
  }
  </code></pre>
  
  <p><strong>The call to the ExecuteAsync method freezes the UI.</strong> </p>
  
  <p><strong>What am I missing?</strong></p>