No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
source
tools/psake
.gitignore
README.md
build.ps1
default.ps1
template.nuspec

README.md

MongoDB.Extensions

Using aggregation framework with C# seems very verbose. MongoDB.Extensions contains a fluent interface around pipeline operations to build and execute aggregation.

You can try it, installing nuget package into your solution:
Install-Package MongoDB.Extensions

An easy sample, about how to use package API:

var result = _collection.CreatePipeline()
            .Match(d => d.Value >= 10)
            .Project(c =>
                {
                    c.Contains(d => d.Value);
                    c.Contains("temp", d => d.Child.Leaf.Value);
                    c.NotContains(d => d.Id);
                })
            .Sort(c =>
                {
                    c.Descending(d => d.Value);
                })
            .Skip(4)
            .Limit(3)
            .Execute();