MigrationsSqlGenerator.HasLegacyRenameOperations(IModel) 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework