Table of Contents

Class MongoQueryableExtensions

Namespace
Microsoft.EntityFrameworkCore
Assembly
MongoDB.EntityFrameworkCore.dll

LINQ extension methods over IQueryable for the MongoDB EF Core Provider. Note that these methods can only be used with the MongoDB EF Core Provider. They cannot be used directly with the MongoDB C# driver.

public static class MongoQueryableExtensions
Inheritance
MongoQueryableExtensions
Inherited Members

Methods

VectorSearch<TSource, TProperty>(DbSet<TSource>, Expression<Func<TSource, TProperty>>, QueryVector, int, VectorQueryOptions?)

Adds a MongoDB Atlas Vector Search to this LINQ query. This method must be called at the root of an EF Core query against MongoDB, except that a Where<TSource>(IQueryable<TSource>, Expression<Func<TSource, bool>>) clause can be used to add a pre-query filter.

VectorSearch<TSource, TProperty>(DbSet<TSource>, Expression<Func<TSource, TProperty>>, Expression<Func<TSource, bool>>?, QueryVector, int, VectorQueryOptions?)

Adds a MongoDB Atlas Vector Search to this LINQ query. This method must be called at the root of an EF Core query against MongoDB, except that a Where<TSource>(IQueryable<TSource>, Expression<Func<TSource, bool>>) clause can be used to add a pre-query filter.