简体   繁体   English

自升级到Azure存储以来丢失了方法

[英]Lost method since upgrading to Azure Storage

I cant find a method since I upgraded the Azure storage dlls. 自从我升级Azure存储dll以来,我找不到一种方法。

The static method I cant find is: CloudTableClient.CreateTablesFromModel 我找不到的静态方法是:CloudTableClient.CreateTablesFromModel

The old class: http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storageclient.cloudtableclient_methods.aspx 旧类: http : //msdn.microsoft.com/en-us/library/microsoft.windowsazure.storageclient.cloudtableclient_methods.aspx

This is the new class: http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storage.table.cloudtableclient_methods.aspx 这是新类: http //msdn.microsoft.com/en-us/library/microsoft.windowsazure.storage.table.cloudtableclient_methods.aspx

I did some searching but couldn't find a word about this being replaced or deleted. 我做了一些搜索,但找不到关于这个被替换或删除的消息。

Does anybody have an idea? 有人有想法吗?

Storage client library 2.0 is quite different from the previous version and a number of methods have been removed in the newer version. 存储客户端库2.0与以前的版本完全不同,并且在较新版本中已删除了许多方法。 This method is one of them. 这种方法就是其中之一。 If you look under the remarks section on this page: http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storageclient.cloudtableclient.createtablesfrommodel.aspx , it is recommended that you not use this method. 如果您在此页面的“备注”部分下查找: http : //msdn.microsoft.com/zh-cn/library/microsoft.windowsazure.storageclient.cloudtableclient.createtablesfrommodel.aspx ,建议您不要使用此方法。

Since these 2 versions are quite different, it is recommended that you read up the following blog posts from the storage team before upgrading your code to use the latest version: 由于这两个版本完全不同,因此建议您先阅读存储团队的以下博客文章,然后再升级代码以使用最新版本:

http://blogs.msdn.com/b/windowsazurestorage/archive/2012/10/29/introducing-windows-azure-storage-client-library-2-0-for-net-and-windows-runtime.aspx http://blogs.msdn.com/b/windowsazurestorage/archive/2012/10/29/introducing-windows-azure-storage-client-library-2-0-for-net-and-windows-runtime.aspx

http://blogs.msdn.com/b/windowsazurestorage/archive/2012/10/29/windows-azure-storage-client-library-2-0-breaking-changes-amp-migration-guide.aspx http://blogs.msdn.com/b/windowsazurestorage/archive/2012/10/29/windows-azure-storage-client-library-2-0-breaking-changes-amp-migration-guide.aspx

http://blogs.msdn.com/b/windowsazurestorage/archive/2012/11/06/windows-azure-storage-client-library-2-0-tables-deep-dive.aspx http://blogs.msdn.com/b/windowsazurestorage/archive/2012/11/06/windows-azure-storage-client-library-2-0-tables-deep-dive.aspx

I also wrote a blog post about migrating code from storage client library 1.7 to 2.0 which you can read here: http://gauravmantri.com/2012/11/17/storage-client-library-2-0-migrating-table-storage-code/ 我还写了一篇关于将代码从存储客户端库1.7迁移到2.0的博客文章,您可以在这里阅读: http//gauravmantri.com/2012/11/17/storage-client-library-2-0-migrating-table-存储的代码/

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

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