Table<TEntity>::InsertAllOnSubmit<TSubEntity> Method (IEnumerable<TSubEntity>^)

 

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:
generic<typename TSubEntity>
where TSubEntity : TEntity
void InsertAllOnSubmit(
	IEnumerable<TSubEntity>^ entities
)

Parameters

entities
Type: System.Collections.Generic::IEnumerable<TSubEntity>^

The entities to add.

Type Parameters

TSubEntity

The type of the elements to insert.

TEntity

The type of the data in the table.

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

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show: