다음을 통해 공유


SqlServerMigrationsSqlGenerator.IndexTraits 메서드

정의

, AddPrimaryKeyOperation또는 AddUniqueConstraintOperation에서 인덱스의 특성에 CreateIndexOperation대한 SQL 조각을 생성합니다.

protected override void IndexTraits (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void IndexTraits (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.IndexTraits : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub IndexTraits (operation As MigrationOperation, model As IModel, builder As MigrationCommandListBuilder)

매개 변수

operation
MigrationOperation

작업입니다.

model
IModel

모델이 없는 작업이 있는 경우일 null 수 있는 대상 모델입니다.

builder
MigrationCommandListBuilder

SQL 조각을 추가하는 데 사용할 명령 작성기입니다.

적용 대상