Share via


MigrationsSqlGenerator.HasLegacyRenameOperations(IModel) Method

Definition

Checks whether or not RenameTableOperation and RenameSequenceOperation use the legacy behavior of setting the new name and schema to null when unchanged.

protected virtual bool HasLegacyRenameOperations (Microsoft.EntityFrameworkCore.Metadata.IModel model);
protected virtual bool HasLegacyRenameOperations (Microsoft.EntityFrameworkCore.Metadata.IModel? model);
abstract member HasLegacyRenameOperations : Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
override this.HasLegacyRenameOperations : Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
Protected Overridable Function HasLegacyRenameOperations (model As IModel) As Boolean

Parameters

model
IModel

The target model.

Returns

true if the legacy behavior is used.

Applies to