The core module of the Datastax C# Linq Driver for Apache Cassandra (C*). This module offers a Linq driver and simple ORM mapper to work with CQL3.
The features provided by this Linq2CQL driver includes:
This driver depends on core driver (Cassandra.dll)
This driver has not been released yet and will need to be compiled manually.
Suppose you have a Cassandra cluster running on 3 nodes whose hostnames are: cass1, cass2 and cass3. A simple example using this core driver could be:
var cluster = Cluster.Builder() .AddContactPoints("cass1", "cass2") .Build(); var session = cluster.Connect("db1"); var context = new SampleContext(session); var table = context.GetTable<SamplEnt>(); foreach (var ent in (from e in table select e).Execute()) // do something ...