SqlServerMigrationsSqlGenerator.UseLegacyIndexFilters Method

Definition

Overloads

UseLegacyIndexFilters(IModel)
Obsolete.

Checks whether or not CreateIndexOperation should have a filter generated for it by Migrations.

UseLegacyIndexFilters(CreateIndexOperation, IModel)

Checks whether or not CreateIndexOperation should have a filter generated for it by Migrations.

UseLegacyIndexFilters(IModel)

Caution

Use UseLegacyIndexFilters which accepts a CreateIndexOperation

Checks whether or not CreateIndexOperation should have a filter generated for it by Migrations.

protected virtual bool UseLegacyIndexFilters (Microsoft.EntityFrameworkCore.Metadata.IModel model);
[System.Obsolete("Use UseLegacyIndexFilters which accepts a CreateIndexOperation")]
protected virtual bool UseLegacyIndexFilters (Microsoft.EntityFrameworkCore.Metadata.IModel? model);
abstract member UseLegacyIndexFilters : Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
override this.UseLegacyIndexFilters : Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
[<System.Obsolete("Use UseLegacyIndexFilters which accepts a CreateIndexOperation")>]
abstract member UseLegacyIndexFilters : Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
override this.UseLegacyIndexFilters : Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
Protected Overridable Function UseLegacyIndexFilters (model As IModel) As Boolean

Parameters

model
IModel

The target model.

Returns

true if a filter should be generated.

Attributes

Applies to

UseLegacyIndexFilters(CreateIndexOperation, IModel)

Checks whether or not CreateIndexOperation should have a filter generated for it by Migrations.

protected virtual bool UseLegacyIndexFilters (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model);
abstract member UseLegacyIndexFilters : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
override this.UseLegacyIndexFilters : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
Protected Overridable Function UseLegacyIndexFilters (operation As CreateIndexOperation, model As IModel) As Boolean

Parameters

operation
CreateIndexOperation

The index creation operation.

model
IModel

The target model.

Returns

true if a filter should be generated.

Applies to