Mapowanie kluczy kompozytowych za pomocą kodu EF

Tabela serwerów Sql:

SomeId PK varchar(50) not null 
OtherId PK int not null

Jak najpierw mapować ten kod w kodzie EF 6?

public class MyTable
{
    [Key]
    public string SomeId { get; set; }

    [Key]
    public int OtherId { get; set; }
}

Widziałem kilka przykładów, w których musisz ustawić kolejność dla każdej kolumny, czy jest to wymagane?

Czy jest gdzieś oficjalna dokumentacja?

questionAnswers(3)

yourAnswerToTheQuestion