public static IPipeline <TClass> Match <TClass>(this IPipeline <TClass> pipeline, Expression <Func <TClass, Boolean> > predicate) { var operation = new MatchOperation <TClass>(pipeline.Collection, predicate); pipeline.AddOperation(operation); return(pipeline); }
public void Apply() { var operation = new MatchOperation<RootDocument>(_collection, d => d.Value == 10 && d.Child.Name == "Alessandro"); var document = operation.Apply(); }
public IBooleanOperation MultiMatch(List <string> wildCardFieldNames, string query, MatchOperation operation) { BaseOperation baseOperation = operation == MatchOperation.And ? (BaseOperation) new AndOperation(this) : new OrOperation(this); return(ApplyUnaryNode(SearchNode.MultiMatchSearchNode( new MultiMatchField(NegateNext, query, wildCardFieldNames)), baseOperation)); }
public void Apply() { var operation = new MatchOperation <RootDocument>(_collection, d => d.Value == 10 && d.Child.Name == "Alessandro"); var document = operation.Apply(); }