I am trying to figure out how to have a composite key using EF code First 4.1 RC.
Currently, I am using the [Key] Data Annotation, but I am unable to specify more th
We don't use the annotations, instead we override the model builder, in which case you can do something like:
modelBuilder.Entity().HasKey(a => new { a.ActivityId, a.ActivityName });