ConventionPrimitivePropertyConfiguration.HasColumnName Method (String)
Configures the name of the database column used to store the property.
Assembly: EntityFramework (in EntityFramework.dll)
public virtual ConventionPrimitivePropertyConfiguration HasColumnName( string columnName )
Parameters
- columnName
-
Type:
System.String
The name of the column.
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.