Table of Contents

Method Inject

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.Legacy.dll

Inject(IMongoQuery)

Injects a low level IMongoQuery into a LINQ where clause. Can only be used in LINQ queries.

public static bool Inject(this IMongoQuery query)

Parameters

query IMongoQuery

The low level query.

Returns

bool

Throws an InvalidOperationException if called.