@lakshmi Thank you for sharing the code snippet. Based on your reference on Azure Cosmos DB .NET SDK v3, I assume you are using Microsoft.Azure.WebJobs.Extensions.CosmosDB
with version 4.0.0 (which implements referenced SDK #717).
As described in docs, there is no direct replacement for Document
type and the recommendation is to use C# type instead of generic types. There are lot of samples about Usage in the SDK repo reference and ItemsManagement sample has all operations such as read items, create item, delete item, etc. that you might find it helpful (the example used SalesOrder type).
The below description refers to the naming convention and will pass on the feedback to our doc's team since this might cause small confusion.
Document
is renamed toItem
Also, want to let you know that Microsoft.Azure.WebJobs.Extensions.CosmosDB
extension uses Microsoft.Azure.Cosmos
library (refer NuGet) whereas Microsoft.Azure.WebJobs.Extensions.Tables
extension uses new library Azure.Data.Tables
(refer NuGet). I see there is another thread being discussed about this with Cosmos experts and feel free to post there for any specific questions about Cosmos library (refer Guidance)
I hope this answers your question and feel free to add a comment if you have any other questions. We would be happy to assist you. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.