我是一个新的天蓝色表用户,我正在尝试向表中写入一些东西,有人可以解释一下为什么 storageAccount.CreateTableClient() 不起作用。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Azure.WebJobs;
using Microsoft.WindowsAzure.Storage.Table;
using Microsoft.Extensions.Logging;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.Azure.Storage.Queue;
using Microsoft.Azure.Storage;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using Microsoft.WindowsAzure.Storage.Blob;
namespace project_3_backend
{
public class Functions
{
private static CloudTable LoanInfo = null;
private static IConfiguration Configuration;
public Functions(IConfiguration configuration)
{
Configuration = configuration;
}
public static void WritetoTable()
{
string connectionString = Configuration.GetValue<String>("AzureWebjobsStorage");
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString);
CloudTableClient tableClient = storageAccount.CreateTableClient();
CloudTable table_mortage = tableClient.GetTableReference("LoanInfo");
}
}