แก้ไข

แชร์ผ่าน


OracleParameter.SourceColumn Property

Definition

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

Property Value

The name of the source column mapped to the DataSet. The default is an empty string ("").

Implements

Examples

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";  
}  

Remarks

The link between the value of the OracleParameter and the DataTable may be bidirectional depending on the value of the Direction property.

Applies to