Dynamicweb 8 Documentation
CreateCommandBuilder Method

An existing DataAdapter.
Creates a CommandBuilder based for the specified DataAdapters.
Syntax
'Declaration
 
Public Shared Function CreateCommandBuilder( _ 
   ByRef adapter As IDbDataAdapter _ 
) As DbCommandBuilder
public static DbCommandBuilder CreateCommandBuilder( 
   ref IDbDataAdapter adapter 
)

Parameters

adapter
An existing DataAdapter.

Return Value

A SqlCommandBuilder or OleDbCommandBuilder depending on the database type.
Remarks
A CommandBuilder automatically generates Insert, Update and Delete commands based on a DataAdapters Select command
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

Reference

Database Class
Database Members

Send Feedback