OracleParameter.SourceColumn 属性

定义

获取或设置映射到 DataSet 并且用于加载或返回 Value 的源列的名称Gets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value

public:
 property System::String ^ SourceColumn { System::String ^ get(); void set(System::String ^ value); };
public:
 virtual property System::String ^ SourceColumn { System::String ^ get(); void set(System::String ^ value); };
public string SourceColumn { get; set; }
public override string SourceColumn { get; set; }
member this.SourceColumn : string with get, set
Public Property SourceColumn As String
Public Overrides Property SourceColumn As String

属性值

映射到 DataSet 的源列的名称。The name of the source column mapped to the DataSet. 默认值为空字符串("")。The default is an empty string ("").

实现

示例

下面的示例创建一个 OracleParameter 并设置其一些属性。The following example creates a OracleParameter and sets some of its properties.

Public Sub CreateOracleDbParameter()  
   Dim parameter As New OracleParameter()  
   parameter.ParameterName = "pDName"  
   parameter.DbType = DbType.String  
   parameter.Value = "ENGINEERING"  
   parameter.SourceColumn = "DName"  
End Sub  
public void CreateOracleDbParameter()   
{  
   OracleParameter parameter = new OracleParameter();  
   parameter.ParameterName = "pDName";  
   parameter.DbType = DbType.String;  
   parameter.Value = "ENGINEERING";  
   parameter.SourceColumn = "DName";  
}  

注解

OracleParameter 的值与 DataTable 之间的链接可能是双向的,具体取决于 Direction 属性的值。The link between the value of the OracleParameter and the DataTable may be bidirectional depending on the value of the Direction property.

适用于