public override BsonDocument Render( IBsonSerializer documentSerializer, IBsonSerializerRegistry serializerRegistry) { var renderedFilter = _filter.Render(documentSerializer, serializerRegistry); if (renderedFilter.ElementCount == 1) { return(NegateSingleElementFilter(renderedFilter, renderedFilter.GetElement(0))); } return(NegateArbitraryFilter(renderedFilter)); }
public override BsonDocument Render( IBsonSerializer <T> documentSerializer, IBsonSerializerRegistry serializerRegistry) { return(_filter.Render(documentSerializer, serializerRegistry)); }