How to properly InsertAllOnSubmit() and is that better than looping InsertOnSubmit()? <p>Say I have:</p> <pre><code>using (SomeDataContext db = new SomeDataContext()) { foreach(Item i in Items) { DbItem d = new DbItem; d.value = i.value; //.... etc ... db.InsertOnSubmit(d); } db.SubmitChanges(); } </code></pre> <p>Is it possible and/or better (worse?) to do:</p> <pre><code>using (SomeDataContext db = new SomeDataContext()) { IEnumerable&lt;DbItem&gt; dbItems = //???? possible? foreach(Item i in Items) { DbItem d = new DbItem; d.value = i.value; //.... etc ... dbItems.Add(d); // ???? again, somehow possible? } db.InsertAllOnSubmit(dbItems); db.SubmitChanges(); } </code></pre>