Azure account

I am trying to deploy an application to Azure, but I am facing some problems.

in my dev block, everything works fine, but I have a problem when I try to use the app after deploying it.

in the dev block, I have an action I do manually that splits the test tables on my local sql express server.

but i dont know how to create tables on server? so when i run the app for my site it says TableNotFound.

Can anyone help me get through this last step? do i need to make sg optional?

thanks in advance

+1


source to share


1 answer


The table storage client provides a method to create a schema in cloud storage; I forgot the name (in a second it will look like); call this when you initialize whatever you are using as a data service layer.

Edit: I am using the following snippet:



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

      

where <Context>

is your data context object.

0


source







All Articles