Getting started

Getting started with the DataStax Enterprise C# Driver.

Installation

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()
                                .AddContactPoint("127.0.0.1")
                                .Build();
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()"));