Class QueryWrapper
Represents a wrapped object that can be used where an IMongoQuery is expected (the wrapped object is expected to serialize properly).
[BsonSerializer(typeof(QueryWrapper.Serializer))]
public class QueryWrapper : BaseWrapper, IMongoQuery
- Inheritance
-
QueryWrapper
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
QueryWrapper(object)
Initializes a new instance of the QueryWrapper class.
public QueryWrapper(object query)
Parameters
query
objectThe wrapped object.
Methods
Create(object)
Creates a new instance of the QueryWrapper class.
public static QueryWrapper Create(object query)
Parameters
query
objectThe wrapped object.
Returns
- QueryWrapper
A new instance of QueryWrapper or null.