Export (0) Print
Expand All

OdbcFactory.CreateDataAdapter Method

Returns a strongly-typed DbDataAdapter instance.

Namespace:  System.Data.Odbc
Assembly:  System.Data (in System.Data.dll)

public override DbDataAdapter CreateDataAdapter()

Return Value

Type: System.Data.Common.DbDataAdapter
A new strongly-typed instance of DbDataAdapter.

The following code fragment returns a strongly-typed DbDataAdapter instance:

OdbcFactory newFactory = OdbcFactory.Instance;
DbDataAdapter cmd = newFactory.CreateDataAdapter();

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft