Rediger

Del via


SiebelClientFactory class in the Siebel adapter

An ADO.NET client accesses the Data Provider for Siebel using generic ADO.NET classes and interfaces. To enable this feature, the Data Provider for Siebel inherits the System.Data.Common.DbProviderFactory class. The client program consumes the client as follows:

  
DbProviderFactory factory = DbProviderFactories.GetFactory("Microsoft.Data.SiebelClient");  
DbConnection connection = factory.CreateConnection();  

An alternative approach is as follows:

SiebelClientFactory factory = SiebelClientFactory.Instance;  
DbConnection connection = factory.CreateConnection();  

SiebelClientFactory exists in the namespace Microsoft.Data.SiebelClient.

Supported Members

SiebelClientFactory extends System.Data.CommonDbProviderFactory. The following table provides a description of the members that SiebelClientFactory overrides.

Name Description
Instance This is a member variable. It provides a singleton instance of SiebelClientFactory.
CreateCommand() Creates an instance of SiebelCommand.
CreateConnection() Creates an instance of SiebelConnection.
CreateConnectionStringBuilder() Creates an instance of SiebelConnectionStringBuilder.
CreateParameter() Creates an instance of SiebelParameter.

See Also

Extend ADO.NET Interfaces with the Siebel adapter