ITable.InsertOnSubmit Method (Object)

 

Adds an entity in a pending insert state to this table.

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

void InsertOnSubmit(
	object entity
)

Parameters

entity
Type: System.Object

The entity to be added.

Call SubmitChanges to perform the actual insertion into the database.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show: