I'm trying to add a record to an entity that has an m:n relationship wtih another entity. The code looks something like this:
<Edited by Daelmo to be readable
>
DropDownList ddlParticipantNumbers = (DropDownList)ParticipantNumbersDropDownList1.FindControl("ddlAverageNumberOfParticipants");
ParticipantNumberLookUpEntity myParticipantNumberEntity = new ParticipantNumberLookUpEntity(Convert.ToInt32(ddlParticipantNumbers.SelectedValue)); thisEvent.ParticipantNumberLookUpCollectionViaEventParticipantNumber.Add(myParticipantNumberEntity);
thisEvent.ParticipantNumberLookUpCollectionViaEventParticipantNumber.SaveMulti();
</Edited>
When I go to debug, the myParticipantNumberEntity object contains the entity I want it to contain. However, when the code all runs, the record is not saved to the database. Anyone have any ideas?
Thanks.
Laurie