SaveEntityCollection only partially works

Posts   
 
    
shennig
User
Posts: 48
Joined: 14-Nov-2006
# Posted on: 18-Jun-2014 11:44:03   

hi.

i'm using llblgen pro 3.0 final (adapter template) with a ms sql server 2008 R2 and .net 3.5 SP1.

i'm trying to save a entity collection where each entity has subentities. i use this code:


adapter.SaveEntityCollection(collection, true, true);

And in most cases, all works fine. but with one collection of entities there is a problem. it consists of 10 entities in the collection and only the first two are saved. if i debug and take a look at the entities only the first two are not longer dirty after saving. the others have the dirty flag and changes are also only stored in the database for the first two entities. no exception is thrown. and further on, with


foreach (var entity in collection)
{
        adapter.SaveEntity(entity, true, true);
}

all works fine. no problem with this collection.

is there a known bug for the 3.0 version?

thank you for reply,

shennig

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 18-Jun-2014 12:03:38   

Please update to the latest v3.0 runtime from the customer area (or if possible to v3.5, it's a free update for you) so we know it's not a bug we fixed already.

Frans Bouma | Lead developer LLBLGen Pro