src/Shared/EntityFramework/ModelConfiguration/Configuration/Types/ConventionTypeConfiguration.cs
/// <summary>
/// Configures the primary key property for this entity type.
/// </summary>
/// <param name="propertyInfo"> The property to be used as the primary key. </param>
/// <returns>
/// The same <see cref="ConventionTypeConfiguration" /> instance so that multiple calls can be chained.
/// </returns>
Configures the primary key property for this entity type.
Configures the primary key property for this entity type .
public ConventionTypeConfiguration HasKey(PropertyInfo propertyInfo)
        {
            Check.NotNull(propertyInfo, "propertyInfo");
            ValidateConfiguration(ConfigurationAspect.HasKey);
            if (_entityTypeConfiguration != null
                && !_entityTypeConfiguration().IsKeyConfigured)
            {
                _entityTypeConfiguration().Key(propertyInfo);
            }
            return this;
        }
public ConventionTypeConfiguration HasKey ( PropertyInfo propertyInfo ) { Check . NotNull ( propertyInfo , " " ) ; ValidateConfiguration ( ConfigurationAspect . HasKey ) ; if ( _entityTypeConfiguration != null && ! _entityTypeConfiguration ( ) . IsKeyConfigured ) { _entityTypeConfiguration ( ) . Key ( propertyInfo ) ; } return this ; }
Configures the primary key property for this entity type.
Configures the primary key property for this entity type .
The same  instance so that multiple calls can be chained.
The same instance so that multiple calls can be chained .
propertyInfo
PropertyInfo
The property to be used as the primary key.
The property to be used as the primary key .