Export (0) Print
Expand All

Table<TEntity>.InsertAllOnSubmit<TSubEntity> Method

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)

public void InsertAllOnSubmit<TSubEntity>(
	IEnumerable<TSubEntity> entities
)
where TSubEntity : TEntity

Type Parameters

TSubEntity

The type of the elements to insert.

Parameters

entities
Type: System.Collections.Generic.IEnumerable<TSubEntity>
The entities to add.

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

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft