Class Mql

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Contains methods that can be used to access MongoDB specific functionality in LINQ queries.

Inheritance

Mql

Inherited Members

Methods

Constant(TValue, BsonType)

Use this method in a MongoDB LINQ query when you need to specify how a constant should be serialized.

Constant(TValue, IBsonSerializer)

Use this method in a MongoDB LINQ query when you need to specify how a constant should be serialized.

Convert<TFrom, TTo>(TFrom, ConvertOptions)

Converts a value from one type to another using the $convert aggregation operator.

DateFromString(string)

Converts a string to a DateTime using the $dateFromString aggregation operator.

DateFromString(string, string)

Converts a string to a DateTime using the $dateFromString aggregation operator.

DateFromString(string, string, string)

Converts a string to a DateTime using the $dateFromString aggregation operator.

DateFromString(string, string, string, DateTime?, DateTime?)

Converts a string to a DateTime using the $dateFromString aggregation operator.

Exists(TField)

Tests whether a field exists.

Field<TDocument, TField>(TDocument, string, IBsonSerializer)

Gets the value of a field in a document.

IsMissing(TField)

Tests whether a field is missing.

IsNullOrMissing(TField)

Tests whether a field is null or missing.

Sigmoid(double)

Transforms a real-valued input into a value between 0 and 1 using the $sigmoid operator.