Siebel 配接器中的 SiebelParameter 類別
Data Provider for Siebel 提供實 DbParameter
作,讓 ADO.NET 用戶端指定特定命令的參數。 使用 Data Provider for Siebel 類別的 System.Data.Common.DbCommand
實例,用戶端程式可以取得 類別 System.Data.Common.DbParameter
的實例。
//In this example, command is an instance of DbCommand
DbParameter param = command.CreateParameter();
或者,可以使用下列方法:
//Here command is an instance of SiebelCommand
SiebelParameter param = (SiebelParameter) command.CreateParameter();
param.ParameterName = "@Time";
SiebelParameter
類別繼承自 DbParameter
。 它存在於命名空間 Microsoft.Data.SiebelClient
中。
支援的屬性
類別 SiebelParameter
支援下列 DbParameter
公用屬性:
名稱 | 取得/設定 | Description |
---|---|---|
DbType | 取得和設定 | 參數的資料類型。 請參閱 基本 Siebel 資料類型。 |
方向 | 取得和設定 | 支援下列值: - ParameterDirection.Input - ParameterDirection.Output - ParameterDirection.InputOutput |
IsNullable | 取得和設定 | 不支援 屬性,如果呼叫,則會擲回例外狀況。 |
ParameterName | 取得和設定 | Data Provider for Siebel 支援 ADO.NET 用戶端的這個屬性,以指定參數名稱。 |
值 | 取得和設定 | Siebel 的資料提供者會將參數值表示為字串。 |
支援的資料類型
下表摘要說明 Data Provider for Siebel 支援的簡單 Siebel 欄位類型。 如需更詳細的涵蓋範圍,請參閱 基本 Siebel 資料類型。
Siebel 欄位類型 | .NET 類型 | XML 結構描述類型 |
---|---|---|
DTYPE_BOOL | Boolean | xsd:boolean |
DTYPE_CURRENCY | Decimal | xsd:decimal |
DTYPE_DATE | DateTime | xsd:dateTime |
DTYPE_DATETIME | DateTime | xsd:dateTime |
DTYPE_ UTCDATETIME | DateTime | xsd:dateTime |
DTYPE_ID | 字串 | xsd:string |
DTYPE_INTEGER | 整數 | xsd:int |
DTYPE_NOTE | 字串 | xsd:string |
DTYPE_NUMBER | Decimal | xsd:decimal |
DTYPE_PHONE | 字串 | xsd:string |
DTYPE_TEXT | 字串 | xsd:string |
DTYPE_TIME | DateTime | xsd:dateTime |
支援的方法
類別 SiebelParameter
不會覆寫 中的任何 DbParameter
特殊方法。