Click or drag to resize

FilterDefinitionBuilderTDocument Class

Inheritance Hierarchy
SystemObject
  MongoDB.DriverFilterDefinitionBuilderTDocument

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax
public sealed class FilterDefinitionBuilder<TDocument>

Type Parameters

TDocument
The type of the document.

The FilterDefinitionBuilderTDocument type exposes the following members.

Constructors
  NameDescription
Public methodFilterDefinitionBuilderTDocument
Initializes a new instance of the FilterDefinitionBuilderTDocument class
Top
Properties
  NameDescription
Public propertyEmpty
Gets an empty filter. An empty filter matches everything.
Top
Methods
  NameDescription
Public methodAllTItem(ExpressionFuncTDocument, IEnumerableTItem, IEnumerableTItem)
Creates an all filter for an array field.
Public methodAllTItem(FieldDefinitionTDocument, IEnumerableTItem)
Creates an all filter for an array field.
Public methodAnd(FilterDefinitionTDocument)
Creates an and filter.
Public methodAnd(IEnumerableFilterDefinitionTDocument)
Creates an and filter.
Public methodAnyEqTItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)
Creates an equality filter for an array field.
Public methodAnyEqTItem(FieldDefinitionTDocument, TItem)
Creates an equality filter for an array field.
Public methodAnyGtTItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)
Creates a greater than filter for an array field.
Public methodAnyGtTItem(FieldDefinitionTDocument, TItem)
Creates a greater than filter for an array field.
Public methodAnyGteTItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)
Creates a greater than or equal filter for an array field.
Public methodAnyGteTItem(FieldDefinitionTDocument, TItem)
Creates a greater than or equal filter for an array field.
Public methodAnyInTItem(ExpressionFuncTDocument, IEnumerableTItem, IEnumerableTItem)
Creates an in filter for an array field.
Public methodAnyInTItem(FieldDefinitionTDocument, IEnumerableTItem)
Creates an in filter for an array field.
Public methodAnyLtTItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)
Creates a less than filter for an array field.
Public methodAnyLtTItem(FieldDefinitionTDocument, TItem)
Creates a less than filter for an array field.
Public methodAnyLteTItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)
Creates a less than or equal filter for an array field.
Public methodAnyLteTItem(FieldDefinitionTDocument, TItem)
Creates a less than or equal filter for an array field.
Public methodAnyNeTItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)
Creates a not equal filter for an array field.
Public methodAnyNeTItem(FieldDefinitionTDocument, TItem)
Creates a not equal filter for an array field.
Public methodAnyNinTItem(ExpressionFuncTDocument, IEnumerableTItem, IEnumerableTItem)
Creates a not in filter for an array field.
Public methodAnyNinTItem(FieldDefinitionTDocument, IEnumerableTItem)
Creates a not in filter for an array field.
Public methodBitsAllClear(ExpressionFuncTDocument, Object, Int64)
Creates a bits all clear filter.
Public methodBitsAllClear(FieldDefinitionTDocument, Int64)
Creates a bits all clear filter.
Public methodBitsAllSet(ExpressionFuncTDocument, Object, Int64)
Creates a bits all set filter.
Public methodBitsAllSet(FieldDefinitionTDocument, Int64)
Creates a bits all set filter.
Public methodBitsAnyClear(ExpressionFuncTDocument, Object, Int64)
Creates a bits any clear filter.
Public methodBitsAnyClear(FieldDefinitionTDocument, Int64)
Creates a bits any clear filter.
Public methodBitsAnySet(ExpressionFuncTDocument, Object, Int64)
Creates a bits any set filter.
Public methodBitsAnySet(FieldDefinitionTDocument, Int64)
Creates a bits any set filter.
Public methodElemMatchTItem(ExpressionFuncTDocument, IEnumerableTItem, FilterDefinitionTItem)
Creates an element match filter for an array field.
Public methodElemMatchTItem(ExpressionFuncTDocument, IEnumerableTItem, ExpressionFuncTItem, Boolean)
Creates an element match filter for an array field.
Public methodElemMatchTItem(FieldDefinitionTDocument, FilterDefinitionTItem)
Creates an element match filter for an array field.
Public methodEqTField(ExpressionFuncTDocument, TField, TField)
Creates an equality filter.
Public methodEqTField(FieldDefinitionTDocument, TField, TField)
Creates an equality filter.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExists(ExpressionFuncTDocument, Object, Boolean)
Creates an exists filter.
Public methodExists(FieldDefinitionTDocument, Boolean)
Creates an exists filter.
Public methodGeoIntersectsTCoordinates(ExpressionFuncTDocument, Object, GeoJsonGeometryTCoordinates)
Creates a geo intersects filter.
Public methodGeoIntersectsTCoordinates(FieldDefinitionTDocument, GeoJsonGeometryTCoordinates)
Creates a geo intersects filter.
Public methodGeoWithinTCoordinates(ExpressionFuncTDocument, Object, GeoJsonGeometryTCoordinates)
Creates a geo within filter.
Public methodGeoWithinTCoordinates(FieldDefinitionTDocument, GeoJsonGeometryTCoordinates)
Creates a geo within filter.
Public methodGeoWithinBox(ExpressionFuncTDocument, Object, Double, Double, Double, Double)
Creates a geo within box filter.
Public methodGeoWithinBox(FieldDefinitionTDocument, Double, Double, Double, Double)
Creates a geo within box filter.
Public methodGeoWithinCenter(ExpressionFuncTDocument, Object, Double, Double, Double)
Creates a geo within center filter.
Public methodGeoWithinCenter(FieldDefinitionTDocument, Double, Double, Double)
Creates a geo within center filter.
Public methodGeoWithinCenterSphere(ExpressionFuncTDocument, Object, Double, Double, Double)
Creates a geo within center sphere filter.
Public methodGeoWithinCenterSphere(FieldDefinitionTDocument, Double, Double, Double)
Creates a geo within center sphere filter.
Public methodGeoWithinPolygon(ExpressionFuncTDocument, Object, Double)
Creates a geo within polygon filter.
Public methodGeoWithinPolygon(FieldDefinitionTDocument, Double)
Creates a geo within polygon filter.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGt(ExpressionFuncTDocument, UInt32, UInt32)
Creates a greater than filter for a UInt32 field.
Public methodGt(ExpressionFuncTDocument, UInt64, UInt64)
Creates a greater than filter for a UInt64 field.
Public methodGt(FieldDefinitionTDocument, UInt32, UInt32)
Creates a greater than filter for a UInt32 field.
Public methodGt(FieldDefinitionTDocument, UInt64, UInt64)
Creates a greater than filter for a UInt64 field.
Public methodGtTField(ExpressionFuncTDocument, TField, TField)
Creates a greater than filter.
Public methodGtTField(FieldDefinitionTDocument, TField, TField)
Creates a greater than filter.
Public methodGte(ExpressionFuncTDocument, UInt32, UInt32)
Creates a greater than or equal filter for a UInt32 field.
Public methodGte(ExpressionFuncTDocument, UInt64, UInt64)
Creates a greater than or equal filter for a UInt64 field.
Public methodGte(FieldDefinitionTDocument, UInt32, UInt32)
Creates a greater than or equal filter for a UInt32 field.
Public methodGte(FieldDefinitionTDocument, UInt64, UInt64)
Creates a greater than or equal filter for a UInt64 field.
Public methodGteTField(ExpressionFuncTDocument, TField, TField)
Creates a greater than or equal filter.
Public methodGteTField(FieldDefinitionTDocument, TField, TField)
Creates a greater than or equal filter.
Public methodInTField(ExpressionFuncTDocument, TField, IEnumerableTField)
Creates an in filter.
Public methodInTField(FieldDefinitionTDocument, TField, IEnumerableTField)
Creates an in filter.
Public methodJsonSchema
Creates a json schema filter.
Public methodLt(ExpressionFuncTDocument, UInt32, UInt32)
Creates a less than filter for a UInt32 field.
Public methodLt(ExpressionFuncTDocument, UInt64, UInt64)
Creates a less than filter for a UInt64 field.
Public methodLt(FieldDefinitionTDocument, UInt32, UInt32)
Creates a less than filter for a UInt32 field.
Public methodLt(FieldDefinitionTDocument, UInt64, UInt64)
Creates a less than filter for a UInt64 field.
Public methodLtTField(ExpressionFuncTDocument, TField, TField)
Creates a less than filter.
Public methodLtTField(FieldDefinitionTDocument, TField, TField)
Creates a less than filter.
Public methodLte(ExpressionFuncTDocument, UInt32, UInt32)
Creates a less than or equal filter for a UInt32 field.
Public methodLte(ExpressionFuncTDocument, UInt64, UInt64)
Creates a less than or equal filter for a UInt64 field.
Public methodLte(FieldDefinitionTDocument, UInt32, UInt32)
Creates a less than or equal filter for a UInt32 field.
Public methodLte(FieldDefinitionTDocument, UInt64, UInt64)
Creates a less than or equal filter for a UInt64 field.
Public methodLteTField(ExpressionFuncTDocument, TField, TField)
Creates a less than or equal filter.
Public methodLteTField(FieldDefinitionTDocument, TField, TField)
Creates a less than or equal filter.
Public methodMod(ExpressionFuncTDocument, Object, Int64, Int64)
Creates a modulo filter.
Public methodMod(FieldDefinitionTDocument, Int64, Int64)
Creates a modulo filter.
Public methodNeTField(ExpressionFuncTDocument, TField, TField)
Creates a not equal filter.
Public methodNeTField(FieldDefinitionTDocument, TField, TField)
Creates a not equal filter.
Public methodNear(ExpressionFuncTDocument, Object, Double, Double, NullableDouble, NullableDouble)
Creates a near filter.
Public methodNear(FieldDefinitionTDocument, Double, Double, NullableDouble, NullableDouble)
Creates a near filter.
Public methodNearTCoordinates(ExpressionFuncTDocument, Object, GeoJsonPointTCoordinates, NullableDouble, NullableDouble)
Creates a near filter.
Public methodNearTCoordinates(FieldDefinitionTDocument, GeoJsonPointTCoordinates, NullableDouble, NullableDouble)
Creates a near filter.
Public methodNearSphere(ExpressionFuncTDocument, Object, Double, Double, NullableDouble, NullableDouble)
Creates a near sphere filter.
Public methodNearSphere(FieldDefinitionTDocument, Double, Double, NullableDouble, NullableDouble)
Creates a near sphere filter.
Public methodNearSphereTCoordinates(ExpressionFuncTDocument, Object, GeoJsonPointTCoordinates, NullableDouble, NullableDouble)
Creates a near sphere filter.
Public methodNearSphereTCoordinates(FieldDefinitionTDocument, GeoJsonPointTCoordinates, NullableDouble, NullableDouble)
Creates a near sphere filter.
Public methodNinTField(ExpressionFuncTDocument, TField, IEnumerableTField)
Creates a not in filter.
Public methodNinTField(FieldDefinitionTDocument, TField, IEnumerableTField)
Creates a not in filter.
Public methodNot
Creates a not filter.
Public methodOfTypeTDerived
Creates an OfType filter that matches documents of a derived type.
Public methodOfTypeTDerived(ExpressionFuncTDerived, Boolean)
Creates an OfType filter that matches documents of a derived type and that also match a filter on the derived document.
Public methodOfTypeTDerived(FilterDefinitionTDerived)
Creates an OfType filter that matches documents of a derived type and that also match a filter on the derived document.
Public methodOfTypeTField, TDerived(ExpressionFuncTDocument, TField)
Creates an OfType filter that matches documents with a field of a derived type.
Public methodOfTypeTField, TDerived(FieldDefinitionTDocument, TField)
Creates an OfType filter that matches documents with a field of a derived typer.
Public methodOfTypeTField, TDerived(ExpressionFuncTDocument, TField, ExpressionFuncTDerived, Boolean)
Creates an OfType filter that matches documents with a field of a derived type and that also match a filter on the derived field.
Public methodOfTypeTField, TDerived(FieldDefinitionTDocument, TField, FilterDefinitionTDerived)
Creates an OfType filter that matches documents with a field of a derived type and that also match a filter on the derived field.
Public methodOr(FilterDefinitionTDocument)
Creates an or filter.
Public methodOr(IEnumerableFilterDefinitionTDocument)
Creates an or filter.
Public methodRegex(ExpressionFuncTDocument, Object, BsonRegularExpression)
Creates a regular expression filter.
Public methodRegex(FieldDefinitionTDocument, BsonRegularExpression)
Creates a regular expression filter.
Public methodSize(ExpressionFuncTDocument, Object, Int32)
Creates a size filter.
Public methodSize(FieldDefinitionTDocument, Int32)
Creates a size filter.
Public methodSizeGt(ExpressionFuncTDocument, Object, Int32)
Creates a size greater than filter.
Public methodSizeGt(FieldDefinitionTDocument, Int32)
Creates a size greater than filter.
Public methodSizeGte(ExpressionFuncTDocument, Object, Int32)
Creates a size greater than or equal filter.
Public methodSizeGte(FieldDefinitionTDocument, Int32)
Creates a size greater than or equal filter.
Public methodSizeLt(ExpressionFuncTDocument, Object, Int32)
Creates a size less than filter.
Public methodSizeLt(FieldDefinitionTDocument, Int32)
Creates a size less than filter.
Public methodSizeLte(ExpressionFuncTDocument, Object, Int32)
Creates a size less than or equal filter.
Public methodSizeLte(FieldDefinitionTDocument, Int32)
Creates a size less than or equal filter.
Public methodText(String, TextSearchOptions)
Creates a text filter.
Public methodText(String, String)
Creates a text filter.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodType(ExpressionFuncTDocument, Object, BsonType)
Creates a type filter.
Public methodType(ExpressionFuncTDocument, Object, String)
Creates a type filter.
Public methodType(FieldDefinitionTDocument, BsonType)
Creates a type filter.
Public methodType(FieldDefinitionTDocument, String)
Creates a type filter.
Public methodWhere
Creates a filter based on the expression.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also