The name that you are giving it should not be given earlier. The HasIndex method creates an index on one or more columns of an entity to improve query performance. The HasAlternateKey method is used to specify an alternate key ...