Q: composite key using EF code-first 4.3 using data annotations in my project, i have a class with two primary keys and am not sure what i am doing wrong. below is an example of what i currently have written. from about a half hour of looking around google/stack overflow has led me to the [Key, Column(order=)] tag. however this is not working in my code and was wondering if i could get any assistance
public class Example{

    [Key, Column(order=0)
    [Required]
    [HiddenInput(DisplayValue = false)]
    public int FirstProperty { get; set; }

    [Key, Column(order=1)
    [Required]
    [HiddenInput(DisplayValue = false)]
    public int SecondProperty { get; set; }

}

when i try to run, the error i am getting is as follows
One or more validation errors were detected during model generation:

System.Data.Entity.Edm.EdmEntityType: : EntityType 'Example' has no key defined. define the key for this EntityType.

thanks
