语言

AnnotationCodeGeneratorDependencies 构造函数

定义

重载

名称 说明
AnnotationCodeGeneratorDependencies()

为 . AnnotationCodeGenerator. 创建服务依赖项参数对象。

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

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

AnnotationCodeGeneratorDependencies(IRelationalTypeMappingSource)

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

AnnotationCodeGeneratorDependencies()

Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs

为 . AnnotationCodeGenerator. 创建服务依赖项参数对象。

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

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

public AnnotationCodeGeneratorDependencies();
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public AnnotationCodeGeneratorDependencies();
Public Sub New ()
特性

适用于

AnnotationCodeGeneratorDependencies(IRelationalTypeMappingSource)

Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs
Source:
AnnotationCodeGeneratorDependencies.cs

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

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public AnnotationCodeGeneratorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource relationalTypeMappingSource);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Design.AnnotationCodeGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Design.AnnotationCodeGeneratorDependencies
Public Sub New (relationalTypeMappingSource As IRelationalTypeMappingSource)

参数

relationalTypeMappingSource
IRelationalTypeMappingSource
特性

注解

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

适用于