CSharpMigrationsGeneratorDependencies 构造函数

定义

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

public CSharpMigrationsGeneratorDependencies (Microsoft.EntityFrameworkCore.Design.ICSharpHelper csharpHelper, Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpMigrationOperationGenerator csharpMigrationOperationGenerator, Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpSnapshotGenerator csharpSnapshotGenerator);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public CSharpMigrationsGeneratorDependencies (Microsoft.EntityFrameworkCore.Design.ICSharpHelper csharpHelper, Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpMigrationOperationGenerator csharpMigrationOperationGenerator, Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpSnapshotGenerator csharpSnapshotGenerator);
new Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies : Microsoft.EntityFrameworkCore.Design.ICSharpHelper * Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpMigrationOperationGenerator * Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpSnapshotGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies : Microsoft.EntityFrameworkCore.Design.ICSharpHelper * Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpMigrationOperationGenerator * Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpSnapshotGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies
Public Sub New (csharpHelper As ICSharpHelper, csharpMigrationOperationGenerator As ICSharpMigrationOperationGenerator, csharpSnapshotGenerator As ICSharpSnapshotGenerator)

参数

csharpHelper
ICSharpHelper

C# 帮助程序。

csharpMigrationOperationGenerator
ICSharpMigrationOperationGenerator

C# 迁移操作生成器。

csharpSnapshotGenerator
ICSharpSnapshotGenerator

C# 模型快照生成器。

属性

注解

请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 相反,请在构造函数中使用此类型,以便依赖项注入容器自动创建和注入实例。 若要创建替换了某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用 C# “with” 运算符替换所选服务。 请勿在此进程中的任何时间点调用构造函数。

适用于