Horje
c# cosmos db add items into container Code Example
c# cosmos db add items into container
using Microsoft.Azure.Cosmos

public class Test
{
	[JsonProperty(PropertyName = "CategoryId")]
	public int Id { get; set; }
}

public async Task AddItemsAsync(CosmosClient cosmosClient, Database database, Container container)
{

	Test test = new Test();
	test.Id = 0;

	ItemResponse<Test> testResponse = await container.CreateItemAsync<Test>(test, new PartitionKey("<Your partition key>"));

	Console.WriteLine("Created item in database with id: {0} Operation consumed {1} RUs.\n"
		, testResponse.Resource.Id, testResponse.RequestCharge);
}




Csharp

Related
windows form button border color Code Example windows form button border color Code Example
world space constant size Code Example world space constant size Code Example
how to call void unity Code Example how to call void unity Code Example
unity ar scale Code Example unity ar scale Code Example
make endless loop c# Code Example make endless loop c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10