Table<TEntity>.InsertAllOnSubmit<TSubEntity> Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Adds all entities of a collection to the DataContext in a pending insert state.

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

Syntax

'Declaration
Public Sub InsertAllOnSubmit(Of TSubEntity As TEntity) ( _
    entities As IEnumerable(Of TSubEntity) _
)
public void InsertAllOnSubmit<TSubEntity>(
    IEnumerable<TSubEntity> entities
)
where TSubEntity : TEntity

Type Parameters

  • TSubEntity
    The type of the elements to insert.

Parameters

Remarks

The added entities will not be in query results until after SubmitChanges has been called.

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.