UpdateSqlGeneratorDependencies 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
服务依赖项参数类 UpdateSqlGenerator
此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class UpdateSqlGeneratorDependencies : IEquatable<Microsoft.EntityFrameworkCore.Update.UpdateSqlGeneratorDependencies>
public sealed class UpdateSqlGeneratorDependencies
public sealed class UpdateSqlGeneratorDependencies : IEquatable<Microsoft.EntityFrameworkCore.Update.UpdateSqlGeneratorDependencies>
[<System.Runtime.CompilerServices.Nullable(0)>]
type UpdateSqlGeneratorDependencies = class
interface IEquatable<UpdateSqlGeneratorDependencies>
type UpdateSqlGeneratorDependencies = class
type UpdateSqlGeneratorDependencies = class
interface IEquatable<UpdateSqlGeneratorDependencies>
Public NotInheritable Class UpdateSqlGeneratorDependencies
Implements IEquatable(Of UpdateSqlGeneratorDependencies)
Public NotInheritable Class UpdateSqlGeneratorDependencies
- 继承
-
UpdateSqlGeneratorDependencies
- 特性
- 实现
注解
不要直接从提供程序或应用程序代码构造此类的实例,因为构造函数签名可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用 C# “with” 运算符替换所选服务。 在此进程中的任何时刻不要调用构造函数。
服务生存期为 Singleton。 这意味着多个实例使用 DbContext 每个服务的单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..
构造函数
| 名称 | 说明 |
|---|---|
| UpdateSqlGeneratorDependencies(ISqlGenerationHelper, IRelationalTypeMappingSource) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
| UpdateSqlGeneratorDependencies(ISqlGenerationHelper) |
为 . UpdateSqlGenerator. 创建服务依赖项参数对象。 请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。 此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。 |
属性
| 名称 | 说明 |
|---|---|
| SqlGenerationHelper |
用于生成更新 SQL 的帮助程序。 |
| TypeMappingSource |
类型映射源。 |
方法
| 名称 | 说明 |
|---|---|
| <Clone>$() |
服务依赖项参数类 UpdateSqlGenerator 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| Equals(Object) |
服务依赖项参数类 UpdateSqlGenerator 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| Equals(UpdateSqlGeneratorDependencies) |
服务依赖项参数类 UpdateSqlGenerator 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| GetHashCode() |
服务依赖项参数类 UpdateSqlGenerator 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| ToString() |
服务依赖项参数类 UpdateSqlGenerator 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| With(IRelationalTypeMappingSource) |
用替换了一个服务克隆此依赖项参数对象。 |
| With(ISqlGenerationHelper) |
用替换了一个服务克隆此依赖项参数对象。 |
运算符
| 名称 | 说明 |
|---|---|
| Equality(UpdateSqlGeneratorDependencies, UpdateSqlGeneratorDependencies) |
服务依赖项参数类 UpdateSqlGenerator 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| Inequality(UpdateSqlGeneratorDependencies, UpdateSqlGeneratorDependencies) |
服务依赖项参数类 UpdateSqlGenerator 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |