OdbcFactory.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 OdbcFactory = OdbcFactory.Instance
Dim cmd As DbDataAdapter = newFactory.CreateDataAdapter()
OdbcFactory newFactory = OdbcFactory.Instance;
DbDataAdapter cmd = newFactory.CreateDataAdapter();

适用于