MigrationsCodeGeneratorDependencies.With 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| With(IAnnotationCodeGenerator) |
用替换了一个服务克隆此依赖项参数对象。 |
| With(IRelationalTypeMappingSource) |
用替换了一个服务克隆此依赖项参数对象。 |
With(IAnnotationCodeGenerator)
用替换了一个服务克隆此依赖项参数对象。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsCodeGeneratorDependencies With(Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
member this.With : Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsCodeGeneratorDependencies
Public Function With (annotationCodeGenerator As IAnnotationCodeGenerator) As MigrationsCodeGeneratorDependencies
参数
- annotationCodeGenerator
- IAnnotationCodeGenerator
替换此类型的当前依赖项。
返回
替换为给定服务的新参数对象。
适用于
With(IRelationalTypeMappingSource)
用替换了一个服务克隆此依赖项参数对象。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsCodeGeneratorDependencies With(Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource relationalTypeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsCodeGeneratorDependencies
Public Function With (relationalTypeMappingSource As IRelationalTypeMappingSource) As MigrationsCodeGeneratorDependencies
参数
- relationalTypeMappingSource
- IRelationalTypeMappingSource
替换此类型的当前依赖项。
返回
替换为给定服务的新参数对象。