SqlCommandBuilder.DataAdapter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.