Condividi tramite


OracleClientFactory.CreateCommand Metodo

Definizione

Restituisce un'istanza di DbCommand fortemente tipizzata.

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

Restituisce

Nuova istanza fortemente tipizzata dell'oggetto DbCommand.

Esempio

Il frammento di codice seguente restituisce un'istanza fortemente tipizzata DbCommand .

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

Si applica a