OracleClientFactory.Instance Field

Definition

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

public static readonly System.Data.OracleClient.OracleClientFactory Instance;

Field Value

Examples

The following code fragment uses the Instance field to retrieve an OracleClientFactory instance and then return a strongly typed DbCommand instance.

OracleClientFactory newFactory = OracleClientFactory.Instance;  
DbCommand command = newFactory.CreateCommand();  

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1