using System.ComponentModel.DataAnnotations;
public class UserArmy
{
[Key, Column(Order = 1)]
public Guid UserId { get; set; }
[Key, Column(Order = 2)]
public int UnitId { get; set; }
public int Quantity { get; set; }
}
Here is a model class I have. I'm using the Entity Framework, Code First approach. The [Key] attribute is recognised but not the Column(Order=x).
Am I missing something that needs to be included?
Thanks :)