RelationalMethodCallTranslatorProvider Class

Definition

Provides translations for LINQ MethodCallExpression expressions by dispatching to multiple specialized method call translators.

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

public class RelationalMethodCallTranslatorProvider : Microsoft.EntityFrameworkCore.Query.IMethodCallTranslatorProvider
type RelationalMethodCallTranslatorProvider = class
    interface IMethodCallTranslatorProvider
Public Class RelationalMethodCallTranslatorProvider
Implements IMethodCallTranslatorProvider
Inheritance
RelationalMethodCallTranslatorProvider
Implements

Constructors

RelationalMethodCallTranslatorProvider(RelationalMethodCallTranslatorProviderDependencies)

Creates a new instance of the RelationalMethodCallTranslatorProvider class.

Properties

Dependencies

Dependencies for this service.

Methods

AddTranslators(IEnumerable<IMethodCallTranslator>)

Adds additional translators which will take priority over existing registered translators.

Translate(IModel, SqlExpression, MethodInfo, IReadOnlyList<SqlExpression>, IDiagnosticsLogger<DbLoggerCategory.Query>)

Translates a LINQ MethodCallExpression to a SQL equivalent.

Translate(IModel, SqlExpression, MethodInfo, IReadOnlyList<SqlExpression>)

Applies to