CSharpSnapshotGeneratorDependencies.With 方法

定义

重载

With(IAnnotationCodeGenerator)

克隆此依赖项参数对象,并替换了一个服务。

With(ICSharpHelper)

克隆此依赖项参数对象,并替换了一个服务。

With(IRelationalTypeMappingSource)

克隆此依赖项参数对象,并替换了一个服务。

With(IAnnotationCodeGenerator)

Source:
CSharpSnapshotGeneratorDependencies.cs

克隆此依赖项参数对象,并替换了一个服务。

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

参数

annotationCodeGenerator
IAnnotationCodeGenerator

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(ICSharpHelper)

Source:
CSharpSnapshotGeneratorDependencies.cs
Source:
CSharpSnapshotGeneratorDependencies.cs
Source:
CSharpSnapshotGeneratorDependencies.cs
Source:
CSharpSnapshotGeneratorDependencies.cs
Source:
CSharpSnapshotGeneratorDependencies.cs

克隆此依赖项参数对象,并替换了一个服务。

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

参数

csharpHelper
ICSharpHelper

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(IRelationalTypeMappingSource)

Source:
CSharpSnapshotGeneratorDependencies.cs
Source:
CSharpSnapshotGeneratorDependencies.cs
Source:
CSharpSnapshotGeneratorDependencies.cs

克隆此依赖项参数对象,并替换了一个服务。

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

参数

relationalTypeMappingSource
IRelationalTypeMappingSource

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于