Редагувати

Поділитися через


SqlCommandBuilder.DataAdapter Property

Definition

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

public:
 property System::Data::SqlClient::SqlDataAdapter ^ DataAdapter { System::Data::SqlClient::SqlDataAdapter ^ get(); void set(System::Data::SqlClient::SqlDataAdapter ^ value); };
public System.Data.SqlClient.SqlDataAdapter DataAdapter { get; set; }
[System.Data.DataSysDescription("SqlCommandBuilder_DataAdapter")]
public System.Data.SqlClient.SqlDataAdapter DataAdapter { get; set; }
member this.DataAdapter : System.Data.SqlClient.SqlDataAdapter with get, set
[<System.Data.DataSysDescription("SqlCommandBuilder_DataAdapter")>]
member this.DataAdapter : System.Data.SqlClient.SqlDataAdapter with get, set
Public Property DataAdapter As SqlDataAdapter

Property Value

A SqlDataAdapter object.

Attributes

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

See also