共用方式為


MigrationsCodeGeneratorDependencies.With 方法

定義

多載

With(IAnnotationCodeGenerator)

複製此相依性參數物件,並取代一個服務。

With(IRelationalTypeMappingSource)

複製此相依性參數物件,並取代一個服務。

With(IAnnotationCodeGenerator)

來源:
MigrationsCodeGeneratorDependencies.cs

複製此相依性參數物件,並取代一個服務。

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)

來源:
MigrationsCodeGeneratorDependencies.cs
來源:
MigrationsCodeGeneratorDependencies.cs
來源:
MigrationsCodeGeneratorDependencies.cs

複製此相依性參數物件,並取代一個服務。

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

取代此類型的目前相依性。

傳回

已取代指定服務的新參數物件。

適用於