DocumentDb可以在2.x运行时使用吗?!?1 [英] Can DocumentDb be used in 2.x runtime ?!?1

查看:84
本文介绍了DocumentDb可以在2.x运行时使用吗?!?1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



最近我将应用功能从1.x升级到2.x.我记得在进行本地调试时,Core Tools向我提出错误,我不能使用DocumentDb触发器。然而,最近我和一位朋友说过,他推测DocumentDb仍然是2.x中支持的
。我只想确定我的理解:


1。 CosmosDb(触发器和sdk)可以在1.x和2.x运行时使用


2。 Documentdb(触发器和sdk)只能在1.x中使用



我的假设是否正确?

解决方案

Azure DocumentDB现在称为Azure CosmosDB。


两者都支持绑定/触发器
FunctionsV1

FunctionsV2


As对于SDK -

1.对于函数V1,您必须使用
它的.NET Framework版本 -   Microsoft.Azure.DocumentDB


2.对于函数V2,你将不得不使用
它的.NET核心版本 -   Microsoft.Azure.Docu mentDB.Core


Hi,

Recently I've upgraded an app function from 1.x to 2.x. I remember while doing local debugging, Core Tools was giving error to me that I can't have DocumentDb triggers. However, recently I've spoken with a friend who was speculating that DocumentDb is still supported in 2.x. I just wanted to make sure about my understand:

1. CosmosDb (triggers and sdk) can be used in both 1.x and 2.x runtime

2. Documentdb (triggers and sdk) can be used only in 1.x

Are my assumptions correct?

解决方案

Azure DocumentDB is now known as Azure CosmosDB.

Bindings/Triggers are supported in both FunctionsV1 and FunctionsV2.

As for the SDK -
1. For Functions V1, you will have to use the .NET Framework Version of it - Microsoft.Azure.DocumentDB
2. For Functions V2, you will have to use the .NET Core Version of it - Microsoft.Azure.DocumentDB.Core


这篇关于DocumentDb可以在2.x运行时使用吗?!?1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆