Method Explain
Explain<TSource>(IQueryable<TSource>)
Returns an explanation of how the query was executed (instead of the results).
public static BsonDocument Explain<TSource>(this IQueryable<TSource> source)
Parameters
sourceIQueryable<TSource>The LINQ query to explain.
Returns
- BsonDocument
An explanation of thow the query was executed.
Type Parameters
TSourceThe type of the elements of source.
Explain<TSource>(IQueryable<TSource>, bool)
Returns an explanation of how the query was executed (instead of the results).
public static BsonDocument Explain<TSource>(this IQueryable<TSource> source, bool verbose)
Parameters
sourceIQueryable<TSource>The LINQ query to explain
verboseboolWhether the explanation should contain more details.
Returns
- BsonDocument
An explanation of thow the query was executed.
Type Parameters
TSourceThe type of the elements of source.