dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlLoaderColumn Class / PgSqlLoaderColumn Constructor / PgSqlLoaderColumn Constructor(String,PgSqlType,Int32,Int32,Int32)
The name of the column.
One of the PgSqlType values.
Maximum size of column data.
The precision of the column.
The scale of the column.
Example

In This Topic
    PgSqlLoaderColumn Constructor(String,PgSqlType,Int32,Int32,Int32)
    In This Topic
    Initializes a new instance of the PgSqlLoaderColumn class with the column name, column data type, column size, precision and scale.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal name As String, _
       ByVal dbType As PgSqlType, _
       ByVal size As Integer, _
       ByVal precision As Integer, _
       ByVal scale As Integer _
    )
    public PgSqlLoaderColumn( 
       string name,
       PgSqlType dbType,
       int size,
       int precision,
       int scale
    )

    Parameters

    name
    The name of the column.
    dbType
    One of the PgSqlType values.
    size
    Maximum size of column data.
    precision
    The precision of the column.
    scale
    The scale of the column.
    Remarks
    Use this constructor to create a PgSqlLoaderColumn instance with custom column name, data type, data size, precision and scale.
    Example
    The following example creates a PgSqlLoaderColumn and sets some of its properties.
    public void CreateMyLoaderColumn(PgSqlLoader loader)
    {
      ...
      PgSqlLoaderColumn column = new PgSqlLoaderColumn("deptno", PgSqlType.Int, 0, 6, 0);
      loader.Add(column);
      ...
    }
    Public Sub CreateMyLoaderColumn(loader as PgSqlLoader)
      ...
      Dim column as PgSqlLoaderColumn = new PgSqlLoaderColumn("deptno", PgSqlType.Int, 0, 6, 0)
      loader.Add(column)
      ...
    End Sub
    See Also