Skip to content

vshlos/mongo-csharp-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB C# Driver LINQ Version

driver home: http://github.com/mongodb/mongo-csharp-driver

mongodb home: http://www.mongodb.org/

apidoc: http://api.mongodb.org/csharp/ (coming soon)

*Note this is not the official mongo c# driver. This is a branch of the current release of the mongo driver which supports LINQ

This is a branch of the original driver however this additionally supports operations on collections such as:

        var items =  from item in db.GetCollection(settings)
                    where item.ID == 123 || item.Name == "Hi"
                    select item;

Also certain operations such as:

  • db.GetCollection(settings).Count()
  • db.GetCollection(settings).LongCount()
  • db.GetCollection(settings).Take(10).Skip(10);
  • db.GetCollection(settings).OrderBy(k=>k.ID)
  • db.GetCollection(settings).OrderByDescending(k=>k.Order);
  • db.GetCollection(settings).Select(k => new {Name=k.Name + k.ID})
  • db.GetCollection(settings).Where(k => k.ID == 1 && k.Price > 10.00)
  • db.GetCollection(settings).FirstOrDefault();
  • db.GetCollection(settings).LastOrDefault();
  • db.GetCollection(settings).Reverse();

Maintainers:

Original Contributors to mongo csharp driver:

About

No description, website, or topics provided.

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
License.txt
Unknown
License.rtf

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%