Table<TEntity>::InsertOnSubmit Method (TEntity)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds an entity in a pending insert state to this Table<TEntity>.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public:
virtual void InsertOnSubmit(
	TEntity entity
) sealed

Parameters

entity
Type: TEntity

The entity to be added.

The added entity will not appear in query results from this table until after SubmitChanges has been called.

No code example is currently available or this language may not be supported.

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