title: Azure Table Storage CreateQuery in .NET Core
body: <p>I'm porting my existing class library that targets .NET Framework 4.6.2 to .NET Core 1.1.</p>
  
  <p>Looks like some of the methods that are available in .NET Framework version are not there in .NET Core. Two such methods are <code>table.CreateQuery</code> and <code>table.ExecuteQuery</code>.</p>
  
  <p>Here's an existing function that's giving me an error for CreateQuery:</p>
  
  <pre><code>public T Get&lt;T&gt;(string partitionKey, string rowKey, string tableName) where T : ITableEntity, new()
              =&gt; getTable(tableName).CreateQuery&lt;T&gt;().Where(r =&gt; r.PartitionKey == partitionKey &amp;&amp; r.RowKey == rowKey).FirstOrDefault();
  </code></pre>
  
  <p>How do I create query in .NET Core?</p>