MigrationsSqlGenerator.HasLegacyRenameOperations(IModel) 方法

定义

RenameTableOperation检查是否并使用RenameSequenceOperation旧行为,即在未更改时将新名称和架构设置为 null。

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

参数

model
IModel

目标模型。

返回

true 如果使用旧行为,则为 。

适用于