MigrationsSqlGenerator.IsOldColumnSupported(IModel) Method

Definition

Checks whether or not AddColumnOperation supports the passing in the old column, which was only added in EF Core 1.1.

C#
protected virtual bool IsOldColumnSupported (Microsoft.EntityFrameworkCore.Metadata.IModel model);
C#
protected virtual bool IsOldColumnSupported (Microsoft.EntityFrameworkCore.Metadata.IModel? model);

Parameters

model
IModel

The target model which may be null if the operations exist without a model.

Returns

true If the model was generated by EF Core 1.1 or later; false if the model is null, has no version specified, or was generated by an EF Core version prior to 1.1.

Applies to

Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0