Table<'TEntity>.InsertAllOnSubmit<'TSubEntity> Method (IEnumerable<'TSubEntity>)
.NET Framework (current version)
Adds all entities of a collection to the DataContext in a pending insert state.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
member InsertAllOnSubmit<'TSubEntity when 'TSubEntity : 'TEntity> : entities:IEnumerable<'TSubEntity> -> unit
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
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Show: