SqlServerMigrationsSqlGenerator 构造函数

定义

重载

SqlServerMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies, IRelationalAnnotationProvider)

创建一个新的 SqlServerMigrationsSqlGenerator 实例。

SqlServerMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies, IMigrationsAnnotationProvider)

创建一个新的 SqlServerMigrationsSqlGenerator 实例。

SqlServerMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies, ICommandBatchPreparer)

创建一个新的 SqlServerMigrationsSqlGenerator 实例。

SqlServerMigrationsSqlGenerator(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IRelationalTypeMapper, IRelationalAnnotationProvider)
SqlServerMigrationsSqlGenerator(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IRelationalTypeMapper, IRelationalAnnotationProvider, IMigrationsAnnotationProvider)

SqlServerMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies, IRelationalAnnotationProvider)

Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs

创建一个新的 SqlServerMigrationsSqlGenerator 实例。

public SqlServerMigrationsSqlGenerator (Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies dependencies, Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider migrationsAnnotations);
new Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator : Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies * Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider -> Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator
Public Sub New (dependencies As MigrationsSqlGeneratorDependencies, migrationsAnnotations As IRelationalAnnotationProvider)

参数

dependencies
MigrationsSqlGeneratorDependencies

包含此服务的依赖项的参数对象。

migrationsAnnotations
IRelationalAnnotationProvider

要使用的特定于提供程序的迁移注释。

适用于

SqlServerMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies, IMigrationsAnnotationProvider)

Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs

创建一个新的 SqlServerMigrationsSqlGenerator 实例。

public SqlServerMigrationsSqlGenerator (Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies dependencies, Microsoft.EntityFrameworkCore.Migrations.IMigrationsAnnotationProvider migrationsAnnotations);
new Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator : Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies * Microsoft.EntityFrameworkCore.Migrations.IMigrationsAnnotationProvider -> Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator
Public Sub New (dependencies As MigrationsSqlGeneratorDependencies, migrationsAnnotations As IMigrationsAnnotationProvider)

参数

dependencies
MigrationsSqlGeneratorDependencies

包含此服务的依赖项的参数对象。

migrationsAnnotations
IMigrationsAnnotationProvider

要使用的特定于提供程序的迁移注释。

适用于

SqlServerMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies, ICommandBatchPreparer)

Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs
Source:
SqlServerMigrationsSqlGenerator.cs

创建一个新的 SqlServerMigrationsSqlGenerator 实例。

public SqlServerMigrationsSqlGenerator (Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies dependencies, Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer commandBatchPreparer);
new Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator : Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies * Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer -> Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator
Public Sub New (dependencies As MigrationsSqlGeneratorDependencies, commandBatchPreparer As ICommandBatchPreparer)

参数

dependencies
MigrationsSqlGeneratorDependencies

包含此服务的依赖项的参数对象。

commandBatchPreparer
ICommandBatchPreparer

命令批处理准备程序。

适用于

SqlServerMigrationsSqlGenerator(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IRelationalTypeMapper, IRelationalAnnotationProvider)

public SqlServerMigrationsSqlGenerator (Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider annotations);
new Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider -> Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator
Public Sub New (commandBuilderFactory As IRelationalCommandBuilderFactory, sqlGenerationHelper As ISqlGenerationHelper, typeMapper As IRelationalTypeMapper, annotations As IRelationalAnnotationProvider)

参数

commandBuilderFactory
IRelationalCommandBuilderFactory
sqlGenerationHelper
ISqlGenerationHelper

适用于

SqlServerMigrationsSqlGenerator(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IRelationalTypeMapper, IRelationalAnnotationProvider, IMigrationsAnnotationProvider)

public SqlServerMigrationsSqlGenerator (Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider annotations, Microsoft.EntityFrameworkCore.Migrations.IMigrationsAnnotationProvider migrationsAnnotations);
new Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider * Microsoft.EntityFrameworkCore.Migrations.IMigrationsAnnotationProvider -> Microsoft.EntityFrameworkCore.Migrations.SqlServerMigrationsSqlGenerator
Public Sub New (commandBuilderFactory As IRelationalCommandBuilderFactory, sqlGenerationHelper As ISqlGenerationHelper, typeMapper As IRelationalTypeMapper, annotations As IRelationalAnnotationProvider, migrationsAnnotations As IMigrationsAnnotationProvider)

参数

commandBuilderFactory
IRelationalCommandBuilderFactory
sqlGenerationHelper
ISqlGenerationHelper
migrationsAnnotations
IMigrationsAnnotationProvider

适用于