RelationalCompositeMethodCallTranslatorDependencies 类

定义

的服务依赖项参数类 RelationalCompositeMethodCallTranslator

此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不在应用程序代码中使用。

请勿直接从提供程序或应用程序代码构造此类的实例,因为随着添加新依赖项,构造函数签名可能会更改。 相反,请在构造函数中使用此类型,以便依赖项注入容器自动创建和注入实例。 若要创建替换了一些依赖服务的实例,请先解析依赖项注入容器中的 对象,然后使用“With...”替换所选服务方法。 请勿在此进程中的任何时间点调用构造函数。

public sealed class RelationalCompositeMethodCallTranslatorDependencies
type RelationalCompositeMethodCallTranslatorDependencies = class
Public NotInheritable Class RelationalCompositeMethodCallTranslatorDependencies
继承
RelationalCompositeMethodCallTranslatorDependencies

构造函数

RelationalCompositeMethodCallTranslatorDependencies(IDiagnosticsLogger<DbLoggerCategory.Query>)

RelationalCompositeMethodCallTranslator创建服务依赖项参数对象。

请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 相反,请在构造函数中使用此类型,以便依赖项注入容器自动创建和注入实例。 若要创建替换了一些依赖服务的实例,请先解析依赖项注入容器中的 对象,然后使用“With...”替换所选服务方法。 请勿在此进程中的任何时间点调用构造函数。

RelationalCompositeMethodCallTranslatorDependencies(IDiagnosticsLogger<DbLoggerCategory.Query>, IEnumerable<IMethodCallTranslatorPlugin>)

RelationalCompositeMethodCallTranslator创建服务依赖项参数对象。

请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 相反,请在构造函数中使用此类型,以便依赖项注入容器自动创建和注入实例。 若要创建替换了一些依赖服务的实例,请先解析依赖项注入容器中的 对象,然后使用“With...”替换所选服务方法。 请勿在此进程中的任何时间点调用构造函数。

属性

Logger

记录器。

Plugins

获取插件。

方法

With(IDiagnosticsLogger<DbLoggerCategory.Query>)

克隆此依赖项参数对象,替换了一个服务。

With(IEnumerable<IMethodCallTranslatorPlugin>)

克隆此依赖项参数对象,替换了一个服务。

适用于