Denomica.Cosmos
1.0.3
dotnet add package Denomica.Cosmos --version 1.0.3
NuGet\Install-Package Denomica.Cosmos -Version 1.0.3
<PackageReference Include="Denomica.Cosmos" Version="1.0.3" />
<PackageVersion Include="Denomica.Cosmos" Version="1.0.3" />
<PackageReference Include="Denomica.Cosmos" />
paket add Denomica.Cosmos --version 1.0.3
#r "nuget: Denomica.Cosmos, 1.0.3"
#:package Denomica.Cosmos@1.0.3
#addin nuget:?package=Denomica.Cosmos&version=1.0.3
#tool nuget:?package=Denomica.Cosmos&version=1.0.3
Denomica.Cosmos
A library that facilitates working with data in Azure Cosmos DB.
This library is the successor to the
Denomica.Cosmos.Extensionslibrary.
Main Features
This library build on the Azure Cosmos DB SDK (Microsoft.Azure.Cosmos) and provides the following main features.
- Introduces the
ContainerAdapterclass, which provides additional ways for working with data in a Cosmos DB container.- Handles the Cosmos DB feed iterator and returns results in batches with support for retrieving the following batch.
- Provides methods that return
IAsyncEnumerable<T>that allows iterating over all result items without having to deal with continuation tokens or feed iterators. - Improves on subtype handling when inserting or updating items.
- Provides the
QueryDefinitionBuilderclass that simplifies buildingQueryDefinitioninstances that you use to query data in Cosmos DB with. - Supports Dependency Injection with the
CosmosServicesBuilderclass that faciliates adding options and services related to working with data in Cosmos DB.
Related Packages
The following packages can be used together with this library to provide additional capabilities.
Denomica.Cosmos.Model- Model classes designed to be stored in a Cosmos DB container.Denomica.Cosmos.Odata- A library that exposes functionality for converting OData parameters into aQueryDefinitionobject for Cosmos DB.
Version Highlights
Major improvements in various versions of this library.
v1.0.3
Fixed a bug that caused an exception to be thrown when accessing items and using the VectorDistance function in the order by clause. Such queries dot not support accessing the ContinuationToken property of the FeedResponse<T> object.
With this update, queries with VectorDistance can be successfully executed.
v1.0.2
Added support for token credential authentication for Azure Cosmos DB.
The authentication mode is determined by whether the connection string contains the AccountKey property:
- If
AccountKeyis present, the library uses the connection string directly to create theCosmosClient(account key authentication). - If
AccountKeyis not present, the library treats the value as either:- a Cosmos DB endpoint URI, or
- a connection string that contains
AccountEndpoint.
In both cases where AccountKey is not present, a token credential must be registered through CosmosServicesBuilder.
v1.0.1
Fixed a bug that caused issues in the ContainerAdapter.FirstOrDefaultAsync method when a stored object has child objects. The child objects were not being deserialized correctly as dictionary objects.
v1.0.0
The first stable release. This version now provides the same core functionality as the Denomica.Cosmos.Extensions Nuget package.
v1.0.0-beta.x
Preliminary releases inteded for shaping the first stable version of the Denomica.Cosmos library.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Azure.Identity (>= 1.17.1)
- Denomica.Text.Json (>= 1.0.8)
- Microsoft.Azure.Cosmos (>= 3.44.1)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Denomica.Cosmos:
| Package | Downloads |
|---|---|
|
Denomica.Cosmos.Odata
A library that exposes functionality for converting OData parameters into a QueryDefinition object for Cosmos DB. |
GitHub repositories
This package is not used by any popular GitHub repositories.