Table of Contents

Class Mql

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

public static class Mql
Inheritance
Mql
Inherited Members

Methods

Constant<TValue>(TValue, BsonType)

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

Constant<TValue>(TValue, IBsonSerializer<TValue>)

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

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>(TField)

Tests whether a field exists.

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

Gets the value of a field in a document.

IsMissing<TField>(TField)

Tests whether a field is missing.

IsNullOrMissing<TField>(TField)

Tests whether a field is null or missing.