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
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。