ColumnModel.IsNarrowerThan Method (ColumnModel, DbProviderManifest)

 

Determines if this column is a narrower data type than another column. Used to determine if altering the supplied column definition to this definition will result in data loss.

Namespace:   System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)

public bool IsNarrowerThan(
	ColumnModel column,
	DbProviderManifest providerManifest
)

Parameters

column
Type: System.Data.Entity.Migrations.Model.ColumnModel

The column to compare to.

providerManifest
Type: System.Data.Entity.Core.Common.DbProviderManifest

Details of the database provider being used.

Return Value

Type: System.Boolean

True if this column is of a narrower data type.