OdbcFactory.Instance Field

 

Gets an instance of the OdbcFactory, which can be used to retrieve strongly-typed data objects.

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

public static readonly OdbcFactory Instance

The following code fragment uses the P:System.Data.Odbc.OdbcFactory.Instance property to retrieve an OdbcFactory instance, and then return a strongly-typed DbCommand instance:

OdbcFactory newFactory = OdbcFactory.Instance;
DbCommand cmd = newFactory.CreateCommand();

.NET Framework
Available since 2.0
Return to top
Show: