src/Shared/EntityFramework/ModelConfiguration/Configuration/Types/EntityTypeConfiguration.cs
// <summary>
// Configures the primary key property(s) for this entity type.
// </summary>
// <param name="propertyInfo"> The property to be used as the primary key. If the primary key is made up of multiple properties, call this method once for each of them. </param>
Configures the primary key property(s) for this entity type.
Configures the primary key property ( s ) for this entity type .
public void Key(PropertyInfo propertyInfo)
        {
            Check.NotNull(propertyInfo, "propertyInfo");
            Key(propertyInfo, null);
        }
public void Key ( PropertyInfo propertyInfo ) { Check . NotNull ( propertyInfo , " " ) ; Key ( propertyInfo , null ) ; }
Configures the primary key property(s) for this entity type.
Configures the primary key property ( s ) for this entity type .
propertyInfo
PropertyInfo
The property to be used as the primary key. If the primary key is made up of multiple properties, call this method once for each of them.
The property to be used as the primary key . If the primary key is made up of multiple properties call this method once for each of them .