Share via


ConventionPrimitivePropertyConfiguration.IsKey Method

Definition

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

public virtual System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration IsKey ();
abstract member IsKey : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
override this.IsKey : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Public Overridable Function IsKey () As ConventionPrimitivePropertyConfiguration

Returns

The same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.

Applies to