DataContext..::.SubmitChanges Method

Computes the set of modified objects to be inserted, updated, or deleted, and executes the appropriate commands to implement the changes to the database.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Syntax

Public Sub SubmitChanges

Dim instance As DataContext

instance.SubmitChanges()
public void SubmitChanges()
public:
void SubmitChanges()
public function SubmitChanges()

Remarks

If override methods are present for insert, update, or delete, SubmitChanges executes these methods instead of the default LINQ to SQL commands.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.5

See Also

Reference

DataContext Class

DataContext Members

SubmitChanges Overload

System.Data.Linq Namespace