Język

RelationalMethodCallTranslatorProvider Klasa

Definicja

Udostępnia tłumaczenia wyrażeń LINQ MethodCallExpression przez wysłanie do wielu wyspecjalizowanych tłumaczy wywołań metod.

Okres istnienia usługi to Scoped. Oznacza to, że każde DbContext wystąpienie będzie używać własnego wystąpienia tej usługi. Implementacja może zależeć od innych usług zarejestrowanych w dowolnym okresie istnienia. Implementacja nie musi być bezpieczna wątkowo.

[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
Dziedziczenie
RelationalMethodCallTranslatorProvider
Atrybuty
Implementuje

Konstruktory

Nazwisko Opis
RelationalMethodCallTranslatorProvider(RelationalMethodCallTranslatorProviderDependencies)

Tworzy nowe wystąpienie RelationalMethodCallTranslatorProvider klasy.

Właściwości

Nazwisko Opis
Dependencies

Zależności dla tej usługi.

Metody

Nazwisko Opis
AddTranslators(IEnumerable<IMethodCallTranslator>)

Dodaje dodatkowe tłumacze, które przejmą priorytet nad istniejącymi zarejestrowanymi tłumaczami.

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

Tłumaczy LINQ MethodCallExpression na odpowiednik SQL.

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

Udostępnia tłumaczenia wyrażeń LINQ MethodCallExpression przez wysłanie do wielu wyspecjalizowanych tłumaczy wywołań metod.

Okres istnienia usługi to Scoped. Oznacza to, że każde DbContext wystąpienie będzie używać własnego wystąpienia tej usługi. Implementacja może zależeć od innych usług zarejestrowanych w dowolnym okresie istnienia. Implementacja nie musi być bezpieczna wątkowo.

Dotyczy