DeleteAllOnSubmit sends individual Delete Statement
In the application that I am currently working, the user interface allow the end user to select multiple items and mark them for deletion. After marking them for deletion they have to click the submit button to send the changes to the database. Well, I had the those objects in memory so I simply passed those objects to DeleteAllOnSubmit method exposed on datacontext and called submitchanges. I thought that linq to SQL would issue a single statement to the database to delete all those objects but it issued seprate SQL statement to delete each object. Here is an example that illustrates the behavior.
In the above screen shot, you would notice that there were five delete statement issued by the datacontext. Not sure why linq to SQL statement did not issue a single statement to accomplish the same task.