についてX-MS-バージョンDocumentDBのREST APIの:
The version of DocumentDB REST service. The latest version is used when the header is not provided.
そしてAzureのDocumentDBサービスでサポートRESTのAPIバージョンの
、あなたはを参照してください可能性がありこの
link。
私がテストしMicrosoft.Azure.DocumentDB.Core 1.1.0
を使用している場合Microsoft.Azure.DocumentDB.Core 1.0.0
ためx-ms-version
は2016-07-11
であろうが、x-ms-version
は、2017-01-19
として設定されることを発見しました。
Microsoft.Azure.DocumentDB.Core 1.1.0は、2017年2月16日にリリースされました。最新のDocumentDB Emulator version 1.11.136.2をダウンロードできます。
The question is, how do I change the version number on the request, AND what should I change the version number to?
DocumentDbクライアントライブラリは、私が知られているように、ライブラリはx-ms-version
を構成するための方法をご提供していない、あなたのdocumentdbにアクセスするための簡単な方法を提供します。
I don't think its an acceptable solution to constantly be upgrading my DocumentDb local emulator. Especially when there is no backup/restore of my data etc.
Azure DocumentDBエミュレータは、開発目的でAzure DocumentDBサービスをエミュレートするローカル環境を提供するだけです。
Data created in one version of the DocumentDB Emulator is not guaranteed to be accessible when using a different version. If you need to persist your data for the long term, it is recommended that you store that data in an Azure DocumentDB account, rather than in the DocumentDB Emulator.
あなたは常にあなたのデータを永続化するために、あなたのDocumentDbエミュレータをアップグレードしたくない場合は、お使いのDocumentDbエミュレータにアクセスするためにDocumentDBクライアントライブラリの指定されたバージョンを活用する必要があります。
私ができることに気づいたのは、古いDocumentDb Clientパッケージへのアップデートだけですが、これはやや後方にあるようです。誰にも他のアイデアはありますか? –