dotConnect for DB2 Documentation
Devart.Common Namespace / DbDataTable Class / InsertCommand Property

In This Topic
    InsertCommand Property (DbDataTable)
    In This Topic
    Gets or sets a SQL statement to insert new records into the data source.
    Syntax
    'Declaration
     
    Public Property InsertCommand As DbCommand
    public DbCommand InsertCommand {get; set;}

    Property Value

    An System.Data.IDbCommand used during an update operation to insert records in the data source that correspond to new rows in the System.Data.DataTable.
    Remarks

    InsertCommand uses its own Connection if it is created. Otherwise InsertCommand uses Connection property.

    If the InsertCommand property is not set, DbDataTable generates necessary SQL statements automatically.

    Example
    Refer to help on types that derive from DbDataTable for samples on usage of this property.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also