简体   繁体   English

如何将数据写入Azure存储表

[英]how to write data to azure storage tables

I have data which needs to be written to azure storage tables. 我有需要写入到Azure存储表中的数据。 Can someone point me to a blog or msdn article where I can refer the sample code? 有人可以指出我可以引用示例代码的博客或msdn文章吗? Help me proceed beyond the 4th line of code. 帮助我超越第四行代码。

        string tableName = "myTable";
        CloudStorageAccount cloudStorageAccount = CloudStorageAccount.FromConfigurationSetting("ConnectionString");
        CloudTableClient cloudTableClient = cloudStorageAccount.CreateCloudTableClient();
        cloudTableClient.CreateTableIfNotExist(tableName);

Take a look at the Azure Platform Training Kit . 看一下Azure平台培训工具包 In particular, look at the lab called ExploringWindowsAzureStorageVS2010. 特别要看的是名为ExploringWindowsAzureStorageVS2010的实验室。 That lab will walk you through creating a table entity, creating a table context, and code to insert into table storage, including the use of AddObject() and SaveChanges() to write your entities to a table. 该实验将引导您完成创建表实体,创建表上下文以及插入表存储的代码,包括使用AddObject()和SaveChanges()将实体写入表中。

我还在http://www.geekzone.co.nz/vs2008/6311找到了一个不错的博客

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM