title: How can I fix "exception has been thrown by the target of an invocation" while accessing data?
body: <p>On the selection changed event I am accessing the data from one of my tables. But the "Exception has been thrown by the target of an invocation" is thrown.</p>
  
  <pre><code>var query = conn.Table&lt;auto_fares&gt;().Where(x =&gt; x.city == cbCity.SelectedItem);
  var result = await query.ToListAsync();
  foreach (var item in result)
  {
      txtDistance.Text = item.min_km.ToString();
      lblDayFare.Text = item.min_fare.ToString();
      lblNightFare.Text = item.night_charges.ToString();
  }
  </code></pre>
  
  <p>After adding the Dispose statement i am getting the following error as 
  "The await operator can only be used within an async lamhda expression. Consider making this lamhda expression with the 'async' modifier."</p>
  
  <p>How can I solve this?</p>