title: How to use WindowsAzure.Storage.Table in .NET Core projects?
body: <p>I installed the <a href="https://www.nuget.org/packages/WindowsAzure.Storage" rel="nofollow noreferrer">Windows Azure Storage 8.1.4</a> NuGet package in my newly created ASP.NET Core Web project, in Visual Studio 2017.</p>
  
  <p>Actually I try to use it, like the <a href="https://docs.microsoft.com/en-us/azure/storage/storage-dotnet-how-to-use-tables#retrieve-all-entities-in-a-partition" rel="nofollow noreferrer">Microsoft docmentation</a> suggests(<code>table.ExecuteQuery(query)</code>), but have only the "Async" methods:</p>
  
  <p><a href="https://i.stack.imgur.com/2sucL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2sucL.png" alt="enter image description here"></a></p>
  
  <p>The code:</p>
  
  <pre><code>public class HelloWorldController : Controller
  {
      public string ReadTables() {
          CloudStorageAccount storage = CloudStorageAccount.Parse(connStr.MyTablesConnStr);
          CloudTableClient tableClient = storage.CreateCloudTableClient();
          CloudTable table = tableClient.GetTableReference("themes");
  
          StringBuilder response = new StringBuilder("Here is your test Table:");
          var query = new TableQuery&lt;ProjectThemeEntity&gt;() {
              SelectColumns = new List&lt;string&gt; {"RowKey", "Description" }
          };
  
          // No way to do it in the controller action ?! ----------
          var items=await table.ExecuteQuerySegmentedAsync&lt;ProjectThemeEntity&gt;(query, null);
  
          foreach (ProjectThemeEntity item in items) {
              response.AppendLine($"Key: {item.RowKey}; Value: {item.Description}");
          }
  
          return response.ToString();
      }
  </code></pre>
  
  <p>I found there were similar problems in the past, like <a href="https://stackoverflow.com/questions/30673266/missing-cloudtable-execute-and-all-non-async-methods-in-asp-net-5-projects">this one</a>...</p>
  
  <p>Any idea how to workaround this?</p>