You wonβt see a performance improvement here because nothing happens until you call SubmitChanges() .
But even if you were doing something ugly like this
foreach(Item i in Items) { DbItem d = new DbItem; d.value = i.value;
I would not expect a significant decrease in performance. This is because LINQ-to-SQL performs special inserts.
Even if you use InsertAllOnSubmit , you will still see a separate SQL command to insert each .
Kirk Broadhurst
source share