/// <summary> /// Creates a regular expression filter. /// </summary> /// <param name="field">The field.</param> /// <param name="regex">The regex.</param> /// <returns>A regular expression filter.</returns> public FilterDefinition<TDocument> Regex(FieldDefinition<TDocument> field, BsonRegularExpression regex) { return new SimpleFilterDefinition<TDocument>(field, regex); }
Обсуждают сегодня