简体   繁体   English

天蓝色存储帐户

[英]azure storage account

I'm trying to deploy an application on Azure but I'm facing some problems. 我试图在Azure上部署应用程序,但遇到一些问题。

on my dev box, all works fine but I have a problem when I'm trying to use the application once it is deployed. 在我的开发箱上,一切正常,但是在部署应用程序后尝试使用该应用程序时出现问题。

on the dev box, I have an action that I do manually wich crates the test tables in my local sql server express. 在“开发”框中,我有一个手动执行的操作,可以在我的本地sql server express中创建测试表。

but I do not know how to create the tables on the server ? 但是我不知道如何在服务器上创建表? so when I run my website application, it says TableNotFound. 因此,当我运行我的网站应用程序时,它显示为TableNotFound。

Can sy guide me through this final step ? sy可以指导我完成最后一步吗? do I need to make sg additional ? 我需要增加sg吗?

Thx in advance 提前Thx

The table storage client provides a method to create the schema in the cloud storage; 表存储客户端提供了一种在云存储中创建架构的方法。 I forget the name (will look it up in a second); 我忘记了这个名字(将在一秒钟内查询一下); call that when you initialise whatever you're using as your data service layer. 在初始化用作数据服务层的任何内容时调用。

Edit: The following snippet is what I use: 编辑:以下代码段是我使用的:

StorageAccountInfo = StorageAccountInfo.GetDefaultTableStorageAccountFromConfiguration();
TableStorage.CreateTablesFromModel( typeof( <Context> ), info );

where <Context> is your data context object. 其中, <Context>是您的数据上下文对象。

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

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