SqlServerMigrationsSqlGenerator.UseLegacyIndexFilters Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for