No i think i can exclude this as the problem. Because my code goes like this:
using (dataDBEntities context = new dataDBEntities()) //create context { using (TransactionScope transaction = new TransactionScope()) //begin transaction { foreach (object data in objectIWantToAdd) // add all object to context { context.AddObject("DataObjects", data); // !no exceptions raised here } try { context.SaveChanges(); // save changes with transaction !exception raised here } catch (Exception) { //throw; } finally { transaction.Complete(); // end transaction context.AcceptAllChanges(); } } } So there is no loop to break by an exception. :( Igor Tandetnik wrotes: > Is this perhaps because your loop is terminated by an exception, and never > gets around to actually insert the remaining rows? _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users