Table<TEntity>.InsertOnSubmit Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Adds an entity in a pending insert state to this Table<TEntity>.
Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)
Syntax
'Declaration
Public Sub InsertOnSubmit ( _
    entity As TEntity _
)
public void InsertOnSubmit(
    TEntity entity
)
Parameters
- entity
 Type: TEntity
 The entity to be added.
Implements
Remarks
The added entity will not appear in query results from this table until after SubmitChanges has been called.
| Topic | Location | 
|---|---|
| Insert, Update, and Delete Operations (LINQ to SQL) | LINQ to SQL | 
| How to: Insert Rows Into the Database (LINQ to SQL) | LINQ to SQL | 
| Object States and Change-Tracking (LINQ to SQL) | LINQ to SQL | 
| Troubleshooting (LINQ to SQL) | LINQ to SQL | 
| Responsibilities of the Developer In Overriding Default Behavior (LINQ to SQL) | LINQ to SQL | 
| Insert, Update, and Delete Operations (LINQ to SQL) | LINQ to SQL | 
| How to: Insert Rows Into the Database (LINQ to SQL) | LINQ to SQL | 
| Object States and Change-Tracking (LINQ to SQL) | LINQ to SQL | 
| Troubleshooting (LINQ to SQL) | LINQ to SQL | 
| Responsibilities of the Developer In Overriding Default Behavior (LINQ to SQL) | LINQ to SQL | 
Version Information
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.