Which LINQ to SQL method is used to update existing records in a database table?

  • ModifyChanges()
  • SaveChanges()
  • SubmitChanges()
  • UpdateChanges()
The SubmitChanges() method in LINQ to SQL is used to update existing records in a database table. This method submits all changes made in the DataContext to the underlying database. It tracks changes made to entities and generates appropriate SQL commands to update records, ensuring data integrity and consistency.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *