I’m writing this Web app that is associated with a Microsoft sql database.
I want the user to be able to insert rows, view rows, and then edit those rows on the page.
When the user clicks a submit button, I want to commit all of the changes that the user made to the database in one large transaction.
Now I have this System.Data.Linq.DataContext object and I’m trying to insert a row into it without submitting changes to the database.
how do i do this?
InsertOnSubmitshouldn’t actually write anything until you callSubmitChanges(). Failing that, stick all your objects to add in a list or something, and iterate over them later to insert.