This documentation is archived and is not being maintained.

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 : 

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.

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.

.NET Framework

Supported in: 3.5
Show: