I'm using the latest 2.5 Adapter.
I fetch a collection of entities (A) and related entity collections of entity B using a prefetch path and a context. I retrieve 1482 As and 29476 Bs from the database and through the context into collections in 2 seconds.
A->BBBB
A->B
A->
A->BBBBBBBBBB
...
Now I want to get a collection of Bs without refetching from the database.
B->A
B->A
...
The context offers me a List<IEntityCore> using GetAll(typeof(B));
If I loop through this list adding it to a new EntityCollection<B> it takes 5 minutes.
1) Is there a better way to do this? (I've already tried GetAdjacencyList with worse results)
2) The EntityCollection.AddRange doesn't see to be able to accept the list from the context.
3) Could the context support "better" collections from GetAll like methods?
Edit:
If I set the EntityCollection<B> I'm adding to DoNotPerformAddIfPresent to false and
don't add the EntityCollection<B> to the context before adding, the looping method performs in less than a second instead of 5 minutes.