I am not using Entity Framework 4. I am on Visual Studio 2008.
I have a model that has items of type EntityCollection & EntityReference.
I am able to make changes to other properties (string, int, etc) of the model using the ApplyPropertyChanges. But I don't know exactly how to update EntityCollection & EntityReference items of the same model object.
Eg:
Note has following items
{
String Name;
EntityCollection<Links> NoteLinks;
Reminders NoteReminders;
EntityReference<Reminders> RemindersReference;
}
When a record already exists, I can update Name easily. How exactly should I update NoteLinks & NoteRemindersReference?
I have seen many examples on StackOverflow but they are either not addressing the same problem or they are implemented in EF4 which I am not using.
Please help.