Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InsertAllOnSubmit(TSubEntity) Method

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft