Hi all. I have a set of new (uncommitted) objects that I need to insert into the DB in a certain order. For… Reasons. (let's hear it for legacy DBs with meaningful PKs, yay!)
The action is not performance sensitive and the whole thing occurs within a transaction, so performing multiple commits is OK. My initial though was that when saving, I could just iterate through the new objects, localizing each one in a new ObjectContext and committing that on each iteration—but I haven't found a way to get that to work. Any ideas? Cheers, - hugi