Share via


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.

[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalMethodCallTranslatorProvider : Microsoft.EntityFrameworkCore.Query.IMethodCallTranslatorProvider
public class RelationalMethodCallTranslatorProvider : Microsoft.EntityFrameworkCore.Query.IMethodCallTranslatorProvider
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalMethodCallTranslatorProvider = class
    interface IMethodCallTranslatorProvider
type RelationalMethodCallTranslatorProvider = class
    interface IMethodCallTranslatorProvider
Public Class RelationalMethodCallTranslatorProvider
Implements IMethodCallTranslatorProvider
Inheritance
RelationalMethodCallTranslatorProvider
Attributes
Implements

Constructors

Name Description
RelationalMethodCallTranslatorProvider(RelationalMethodCallTranslatorProviderDependencies)

Creates a new instance of the RelationalMethodCallTranslatorProvider class.

Properties

Name Description
Dependencies

Dependencies for this service.

Methods

Name Description
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