Table of Contents

Method Execute

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.Legacy.dll

Execute<TResult>(Expression)

Executes a query.

public TResult Execute<TResult>(Expression expression)

Parameters

expression Expression

The query expression.

Returns

TResult

The result of the query.

Type Parameters

TResult

The type of the result.

Execute(Expression)

Executes a query. Calls the generic method Execute{{T}} to actually execute the query.

public object Execute(Expression expression)

Parameters

expression Expression

The query expression.

Returns

object

The result of the query.