Search code examples
.netormnosqlkundera

.Net ORM for Hbase/Cassandra/MongoDB


Are there any ORM .Net solutions for working with HBase? Something similar to the concepts presented in Kundera, but a .Net client stack?


Solution

  • There's NoRM for MongoDB Here's a sample from their site:

    public Post GetMostRecentPost()
    {
      Post mostRecentPost;
    
      using(var db = Mongo.Create("mongodb://localhost/BlogApp"))
      {
         var posts = db.GetCollection<Post>();
         //create a LINQ queryable to search the DB.
         var q = posts.AsQueryable();
    
         //the ordering happens on the server and only one result will be returned.
         mostRecentPost = q.OrderByDescending(y=>y.PostDate).FirstOrDefault();
      }
    
      return mostRecentPost;
    }