I have a domain collection type called SavedAnswers and would like to add that collection to my Entity Framework type Entries. I've been trying to figure out what I need to do but I'm getting confused on all the information out there.
Answers has a Identity Primary Key and two Foreign Keys, which brings more issues/questions.
public void AddEntries(List<SavedAnswers> answers)
{
foreach (var item in answers)
{
db.Entries.AddObject(Entries.CreateEntries(1, item.QuestionId, item.AnswerId));
}
db.SaveChanges();
}