Skip to main content
.NETFramework4.6.2net8.0.NETStandard2.1

Client library for accessing the DataStax Astra DB Data API from .NET applications.

Published
Apr 25, 2025
1y ago
Total Downloads
3.1K
3,138

Install

dotnet add package DataStax.AstraDB.DataApi --version 1.0.1-beta
ProductVersions
.NET
net8.0
.NET Standard
netstandard2.1
Other
.NETFramework4.6.2

README

Overview

This C# Client Library simplifies using the DataStax Data API to manage and interact with AstraDB instances as well as other DataStax databases.

Installation

dotnet add package DataStax.AstraDB.DataApi

Quickstart

//instantiate a client
var client = new DataApiClient("YourTokenHere");

//connect to a database
var database = client.GetDatabase("YourDatabaseUrlHere");

//create a new collection
var collection = await database.CreateCollectionAsync<SimpleObject>("YourCollectionNameHere");

//insert a document into the collection
var documents = new List<SimpleObject>
{
    new SimpleObject()
    {
        Name = "Test Object 1",
    },
    new SimpleObject()
    {
        Name = "Test Object 2",
    }
};
var insertResult = await collection.InsertManyAsync(documents);

//find a document
var filter = Builders<SimpleObject>.Filter.Eq(so => so.Name, "Test Object 1");
var results = await collection.Find(filter);

Changes from Previous Version

No structural changes between v1.0.0-beta and v1.0.1-beta.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.