Deploying stored procedures with CosmosDb

时间:2017-06-09 12:54:56

标签: powershell asp.net-core azure-cosmosdb devops

In an asp.net core application in Azure, I am using some stored procedures in a CosmosDB database.

I know how to create these stored procedures with C# code. But, I do not know when to deploy them (in my web app, by powershell, in a separate command line application...)

1 个答案:

答案 0 :(得分:0)

引导DocumentClient时,请为未分区的集合升级存储过程以简化部署。对于分区集合,您必须删除/创建存储过程 - 如果您在飞行中升级系统,这可能会有问题。