Ejemplo n.º 1
0
        public NoSqlPipeline Project(params string[] args)
        {
            var projection = new NoSqlProjection(args);
            Pipeline.Add(new BsonDocument { { "$project", projection.GetProjection() } });

            Fields = projection.GetFields().ToList();

            return this;
        }
Ejemplo n.º 2
0
        public NoSqlPipeline Project(NoSqlProjection projection)
        {
            Pipeline.Add(new BsonDocument {{ "$project", projection.GetProjection() }});
            Fields = projection.GetFields().ToList();

            return this;
        }