dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleLoaderColumn Class / OracleLoaderColumn Constructor / OracleLoaderColumn Constructor(String,OracleDbType,Int32)
The name of the column.
One of the OracleDbType values.
Maximum size of column data (only for strings).
Example

OracleLoaderColumn Constructor(String,OracleDbType,Int32)
Initializes a new instance of the OracleLoaderColumn class with the column name, column data type and column size.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal dbType As OracleDbType, _
   ByVal size As Integer _
)
 

Parameters

name
The name of the column.
dbType
One of the OracleDbType values.
size
Maximum size of column data (only for strings).
Remarks
Use this constructor to create a OracleLoaderColumn instance with column name, column data type and column data size.
Example
The following example creates a OracleLoaderColumn and sets some of its properties.
public void CreateMyLoaderColumn(OracleLoader loader)
{
  ...
  OracleLoaderColumn column = new OracleLoaderColumn("dname", OracleDbType.VarChar, 25);
  loader.Add(column);
  ...
}
Public Sub CreateMyLoaderColumn(loader as OracleLoader)
  ...
  Dim column as OracleLoaderColumn = new OracleLoaderColumn("dname", OracleDbType.VarChar, 25)
  loader.Add(column)
  ...
End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also