InsertCommand property

Specifies a ULCommand object that is executed against the database when DbDataAdapter.Update(System.Data.DataSet) is called to insert rows in the database that correspond to inserted rows in the System.Data.DataSet.

Syntax
Visual Basic
Public Property InsertCommand As ULCommand
C#
public ULCommand InsertCommand { get; set; }
Property value

A ULCommand object that is executed to insert rows in the database that correspond to inserted rows in the System.Data.DataSet.

Remarks

When InsertCommand is assigned to an existing ULCommand object, the ULCommand object is not cloned. The InsertCommand maintains a reference to the existing ULCommand.

This is the strongly-typed version of System.Data.IDbDataAdapter.InsertCommand and System.Data.Common.DbDataAdapter.InsertCommand.

See also