I am using a prefetch path to bring back NoteTypes for each Note in a collection belonging to a Matter, like this:
prefetch.Add(MatterEntity.PrefetchPathNotes).SubPath = NoteEntity.PrefetchNoteDetails;
public static IPrefetchPath2 PrefetchNoteDetails
{
get
{
PrefetchPath2 prefetch = new PrefetchPath2(EntityType.NoteEntity);
prefetch.Add(NoteEntity.PrefetchPathCreatedBy);
prefetch.Add(NoteEntity.PrefetchPathNoteType);
return prefetch;
}
}
This works fine, but when I use it, the data that is returned has also pulled back every Note belonging to that NoteType, which is a lot. I only want the NoteType for the notes in the collection, I don't want it to then pull back every note that has that notetype as we are returning the data over WCF and the data is becoming very large.
So for example:
matter.Notes[0].NoteType.Notes is a very large collection, but I don't want it bringing that data back.
Are there any options to control this?
Stephen