SqlCommandBuilder.DataAdapter 属性

定义

获取或设置自动为其生成 Transact-SQL 语句的一个 SqlDataAdapter 对象。

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

属性值

SqlDataAdapter 对象。

属性

注解

SqlCommandBuilder自身注册为由此属性中指定的 生成的SqlDataAdapter事件的侦听器RowUpdating

创建 的新实例时,将释放与此关联的SqlDataAdapter任何现有SqlCommandBuilder实例SqlCommandBuilder

适用于

另请参阅