C# Driver for Cassandra: New Mapper and Linq improvements
The latest release introduces a new object Mapper component that simplifies mapping query results to objects, and several improvements to the Linq component for a more user-friendly interface. The Mapper, inspired by PetaPoco, NPoco, Dapper.NET, and cqlengine, allows users to write queries with CQL while it handles mapping rows returned from Cassandra to their classes. It can be used with short-lived instances as long as the same Session instance is reused. The Mapper provides methods for various operations like Inserts, Updates, Deletes, and more. Linq capabilities have also been improved, allowing users to query their Cassandra cluster using Linq lambda syntax or queries and get results mapped to classes or anonymous classes. There are no breaking changes for Linq in this release, but an upgrade guide is available. The driver now comes as a single strong-named assembly, with the latest version available on NuGet and source code on GitHub.
Company
DataStax
Date published
Feb. 5, 2015
Author(s)
Jorge Bay Gondra
Word count
395
Language
English
Hacker News points
None found.