I have the following code
NavigationEntityProperty noteProp =
entity.EntityAspect.EntityMetadata.NavigationProperties.FirstOrDefault(
p => string.Equals(p.Name, "Notes"));
var list = noteProp.GetValue(entity) as IList;
list.Add(dSourceNote);
When I cast as IList the list is populated from the database.
I have no need to access the other values and for performance reasons in this case I would like to just add to the navigationentityproperty without selecting the other values from the database.
Is there any way I can do this?
thanks
Murray