Getting started

DataStax drivers unification

As of the 3.13.0 release of the DataStax C# Driver for Apache Cassandra®, the DataStax Enterprise C# Driver functionality has been merged into this single, DataStax driver. Please refer to the blog post for more information on this change.

Getting started with the DataStax Enterprise C# Driver.


Get it on Nuget

PM> Install-Package Dse

Upgrading from the core driver

To Upgrade from CassandraCSharpDriver to Dse, replace using directive to point to Dse instead of Cassandra.

using Dse;

And create IDseCluster and IDseSession instances.

IDseCluster cluster = DseCluster.Builder()
IDseSession session = cluster.Connect();

Execute CQL queries

IDseSession extends the core driver counterpart ISession, so you can use IDseSession instances to execute CQL queries.

RowSet rs = session.Execute("select * from system.local");

Execute Graph queries

Additionally, IDseSession exposes graph-specific methods.

GraphResultSet rs = session.ExecuteGraph(new SimpleGraphStatement("g.V()"));