dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlLoaderColumn Class / PgSqlLoaderColumn Constructor / PgSqlLoaderColumn Constructor(String,PgSqlType)
The name of the column.
Example

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

    Parameters

    name
    The name of the column.
    dbType
    Remarks
    Use this constructor to create a PgSqlLoaderColumn instance with column name and column data type.
    Example
    The following example creates a PgSqlLoaderColumn and sets some of its properties.
    public void CreateMyLoaderColumn()
    {
      PgSqlLoaderColumn column = new PgSqlLoaderColumn("DName", PgSqlType.VarChar);
      column.Size = 15;
    }
    Public Sub CreateMyLoaderColumn()
      Dim column As PgSqlLoaderColumn
      column = New PgSqlLoaderColumn("DName", PgSqlType.VarChar)
      column.Size = 15
    End Sub
    See Also