MigrationsCodeGeneratorDependencies.With Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
With(IAnnotationCodeGenerator) |
Clones this dependency parameter object with one service replaced. |
With(IRelationalTypeMappingSource) |
Clones this dependency parameter object with one service replaced. |
With(IAnnotationCodeGenerator)
Clones this dependency parameter object with one service replaced.
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
Parameters
- annotationCodeGenerator
- IAnnotationCodeGenerator
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IRelationalTypeMappingSource)
Clones this dependency parameter object with one service replaced.
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
Parameters
- relationalTypeMappingSource
- IRelationalTypeMappingSource
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
Entity Framework