ConventionPrimitivePropertyConfiguration.IsKey Method ()

 

Configures this property to be part of the entity type's primary key.

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

public virtual ConventionPrimitivePropertyConfiguration IsKey()