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.

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

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