MigrationsSqlGenerator.IsOldColumnSupported(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 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
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