title: Azure Function to Update Table Storage entity - CloudTable.Execute not found
body: <p>I'm starting out using Azure and c# and I'm attempting to use Table Storage - and using an Azure Function to update entitys in the table. My code is as follows: </p>
  
  <pre><code> #r "Microsoft.WindowsAzure.Storage"
  #r "Newtonsoft.Json"
  using System;
  using Newtonsoft.Json; 
  using Microsoft.WindowsAzure.Storage;
  using Microsoft.WindowsAzure.Storage.Table;
  
  public static async Task&lt;HttpResponseMessage&gt; Run(HttpRequest req, CloudTable lookupTable)
  {
      string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
      dynamic data = JsonConvert.DeserializeObject(requestBody);
      string partitionKey = data.Society;
      string rowKey = data.ConnectionDetails.Environment; 
      string newConnection = data.ConnectionDetails.Connection; 
  
      TableOperation operation = TableOperation.Retrieve&lt;SocietyConnectionDetails&gt;(partitionKey, rowKey); 
      TableResult result = lookupTable.Execute(operation);
      SocietyConnectionDetails societyConnectionDetails = (SocietyConnectionDetails)result.Result; 
  
      societyConnectionDetails.Connection = newConnection; 
      operation = TableOperation.Replace(societyConnectionDetails); 
      lookupTable.Execute(operation);
  }
  
  public class SocietyConnectionDetails : TableEntity
  {
      public string Connection {get; set;}
  }
  </code></pre>
  
  <p>But the errors im getting are as follows: </p>
  
  <pre><code>2020-02-25T10:33:16.956 [Error] run.csx(17,38): error CS1061: 'CloudTable' does not contain a definition for 'Execute' and no accessible extension method 'Execute' accepting a first argument of type 'CloudTable' could be found (are you missing a using directive or an assembly reference?)
  2020-02-25T10:33:16.984 [Error] run.csx(22,17): error CS1061: 'CloudTable' does not contain a definition for 'Execute' and no accessible extension method 'Execute' accepting a first argument of type 'CloudTable' could be found (are you missing a using directive or an assembly reference?)
  2020-02-25T10:33:17.011 [Error] run.csx(8,47): error CS0161: 'Run(HttpRequest, CloudTable)': not all code paths return a value
  </code></pre>
  
  <p>I can see that the issue is happening when im attempting to 'Execute' my Table Operations... this might be a relatively straight forward problem but I'm struggling to work out why this wouldn't be working...</p>
  
  <p>Thanks for any help..</p>