Table<TEntity>.InsertAllOnSubmit<TSubEntity> Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Adds all entities of a collection to the DataContext in a pending insert state.
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.
Show: