ConventionPrimitivePropertyConfiguration.HasColumnType Method (String)
Configures the data type of the database column used to store the property.
Assembly: EntityFramework (in EntityFramework.dll)
public virtual ConventionPrimitivePropertyConfiguration HasColumnType( string columnType )
Parameters
- columnType
-
Type:
System.String
Name of the database provider specific data type.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfigurationThe same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.
Calling this will have no effect once it has been configured.