using Entity Framework 4.1 trying to get a collection of ints,
basically I have a Entity called Spec
public class Spec {
public int Id{get;set;}
public string Name {get;set;}
public ICollection<int> TypeIds {get;set;}
}
the table Specs has the Columns id, Name, etc and I'm trying to map TypeIds to table SpecTypes with column specId TypeId and I can't figure out the mappings for it
I have been tying something like this
modelBuilder.Entity<Spec>().HasMany(r => r.TypesIds)
.WithMany()
.Map(m => m.ToTable("SpecTypes")
.MapLeftKey("SpecId")
.MapRightKey("TypeId"));