Class ExpressionFilterDefinition<TDocument>
public sealed class ExpressionFilterDefinition<TDocument> : FilterDefinition<TDocument>
Type Parameters
TDocument
- Inheritance
-
FilterDefinition<TDocument>ExpressionFilterDefinition<TDocument>
- Inherited Members
- Extension Methods
Constructors
ExpressionFilterDefinition(Expression<Func<TDocument, bool>>)
public ExpressionFilterDefinition(Expression<Func<TDocument, bool>> expression)
Parameters
expression
Expression<Func<TDocument, bool>>
Properties
Expression
public Expression<Func<TDocument, bool>> Expression { get; }
Property Value
- Expression<Func<TDocument, bool>>
Methods
Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry)
public override BsonDocument Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry)
Parameters
documentSerializer
IBsonSerializer<TDocument>serializerRegistry
IBsonSerializerRegistry
Returns
- BsonDocument