RelationalTypeMappingSourceDependencies 构造函数

定义

重载

RelationalTypeMappingSourceDependencies()

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

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

RelationalTypeMappingSourceDependencies(IEnumerable<IRelationalTypeMappingSourcePlugin>)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

RelationalTypeMappingSourceDependencies()

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

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

public RelationalTypeMappingSourceDependencies ();
Public Sub New ()

适用于

RelationalTypeMappingSourceDependencies(IEnumerable<IRelationalTypeMappingSourcePlugin>)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

public RelationalTypeMappingSourceDependencies (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSourcePlugin> plugins);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalTypeMappingSourceDependencies (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSourcePlugin> plugins);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingSourceDependencies : seq<Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSourcePlugin> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingSourceDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingSourceDependencies : seq<Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSourcePlugin> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingSourceDependencies
Public Sub New (plugins As IEnumerable(Of IRelationalTypeMappingSourcePlugin))

参数

属性

注解

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

适用于