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