Share via


SqlCommandBuilder.DataAdapter Property

Definition

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

public:
 property Microsoft::Data::SqlClient::SqlDataAdapter ^ DataAdapter { Microsoft::Data::SqlClient::SqlDataAdapter ^ get(); void set(Microsoft::Data::SqlClient::SqlDataAdapter ^ value); };
public Microsoft.Data.SqlClient.SqlDataAdapter DataAdapter { get; set; }
member this.DataAdapter : Microsoft.Data.SqlClient.SqlDataAdapter with get, set
Public Property DataAdapter As SqlDataAdapter

Property Value

A SqlDataAdapter object.

Remarks

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

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

Applies to