Entity Framework 6 inverting column order for composite foreign keys -
i'm getting error: (15,10) : error 3015: problem in mapping fragments starting @ lines 6, 15: foreign key constraint 'beta_alpha' table beta (alpha_2, alpha_1) table alpha (alpha_1, alpha_2):: insufficient mapping: foreign key must mapped associationset or entitysets participating in foreign key association on conceptual side. the key information composite foreign key in beta (alpha_2, alpha_1) has columns inverted, alpha_2 first , alpha_1 second. appears bug in entity framework. here entities: public class alpha { [key, column(order = 1)] public string alpha_1 { get; set; } [key, column(order = 2)] public string alpha_2 { get; set; } } public class beta { [key, column(order = 1)] public string beta_1 { get; set; } [key, column(order = 2)] public string alpha_2 { get; set; } [required] public string alpha_1 { get; set; } [foreignkey("alpha_1, alpha_2")] public virtual alpha alpha { get; set; } } note...