VistaDB 5






If true, generate parameter names matching column names, if possible. If false, generate @p1, @p2, and so on.
GetInsertCommand(Boolean) Method
Gets the automatically generated VistaDBCommand object required to perform insertions at the data source, optionally using columns for parameter names.
Syntax
'Declaration
 
Public Overloads Shadows Function GetInsertCommand( _
   ByVal useColumnsForParameterNames As System.Boolean _
) As VistaDBCommand
'Usage
 
Dim instance As VistaDBCommandBuilder
Dim useColumnsForParameterNames As System.Boolean
Dim value As VistaDBCommand
 
value = instance.GetInsertCommand(useColumnsForParameterNames)
public new VistaDBCommand GetInsertCommand( 
   System.bool useColumnsForParameterNames
)
public function GetInsertCommand( 
    useColumnsForParameterNames: System.Boolean
): VistaDBCommand; 
public hide function GetInsertCommand( 
   useColumnsForParameterNames : System.boolean
) : VistaDBCommand;
public: new VistaDBCommand* GetInsertCommand( 
   System.bool useColumnsForParameterNames
) 
public:
new VistaDBCommand^ GetInsertCommand( 
   System.bool useColumnsForParameterNames
) 

Parameters

useColumnsForParameterNames
If true, generate parameter names matching column names, if possible. If false, generate @p1, @p2, and so on.

Return Value

The automatically generated VistaDBCommand object required to perform insertions.
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