OracleClientFactory.CreateDataAdapter 方法

定义

返回强类型的 DbDataAdapter 实例。

public:
 override System::Data::Common::DbDataAdapter ^ CreateDataAdapter();
public override System.Data.Common.DbDataAdapter CreateDataAdapter ();
override this.CreateDataAdapter : unit -> System.Data.Common.DbDataAdapter
Public Overrides Function CreateDataAdapter () As DbDataAdapter

返回

DbDataAdapter 的新强类型实例。

示例

以下代码片段返回强类型 DbDataAdapter 实例。

Dim newFactory As OracleClientFactory = OracleClientFactory.Instance  
Dim dataAdapter As DbDataAdapter = newFactory.CreateDataAdapter()  
OracleClientFactory newFactory = OracleClientFactory.Instance;  
DbDataAdapter dataAdapter = newFactory.CreateDataAdapter();  

适用于