CSharpSnapshotGeneratorDependencies.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(ICSharpHelper) |
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.CSharpSnapshotGeneratorDependencies With (Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
member this.With : Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorDependencies
Public Function With (annotationCodeGenerator As IAnnotationCodeGenerator) As CSharpSnapshotGeneratorDependencies
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(ICSharpHelper)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorDependencies With (Microsoft.EntityFrameworkCore.Design.ICSharpHelper csharpHelper);
member this.With : Microsoft.EntityFrameworkCore.Design.ICSharpHelper -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorDependencies
Public Function With (csharpHelper As ICSharpHelper) As CSharpSnapshotGeneratorDependencies
Parameters
- csharpHelper
- ICSharpHelper
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.CSharpSnapshotGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource relationalTypeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorDependencies
Public Function With (relationalTypeMappingSource As IRelationalTypeMappingSource) As CSharpSnapshotGeneratorDependencies
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