This documentation is archived and is not being maintained.

DbCommandBuilder.DataAdapter Property

Gets or sets a DbDataAdapter object for which Transact-SQL statements are automatically generated.

Namespace: System.Data.Common
Assembly: System.Data (in

public DbDataAdapter DataAdapter { get; set; }
/** @property */
public DbDataAdapter get_DataAdapter ()

/** @property */
public void set_DataAdapter (DbDataAdapter value)

public function get DataAdapter () : DbDataAdapter

public function set DataAdapter (value : DbDataAdapter)

Not applicable.

Property Value

A DbDataAdapter object.

The DbCommandBuilder registers itself as a listener for RowUpdating events that are generated by the DbDataAdapter specified in this property.

When you create a new instance of DbCommandBuilder, any existing DbCommandBuilder associated with this DbDataAdapter is released.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0

XNA Framework

Supported in: 1.0