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

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

Parameters

name
The name of the column.
dbType
One of the PgSqlType values.
size
Maximum size of column data (only for strings).
Remarks
Use this constructor to create a PgSqlLoaderColumn instance with column name, column data type and column data size.
Example
The following example creates a PgSqlLoaderColumn and sets some of its properties.
public void CreateMyLoaderColumn(PgSqlLoader loader)
{
  ...
  PgSqlLoaderColumn column = new PgSqlLoaderColumn("dname", PgSqlType.VarChar, 25);
  loader.Add(column);
  ...
}
Public Sub CreateMyLoaderColumn(loader as PgSqlLoader)
  ...
  Dim column as PgSqlLoaderColumn = new PgSqlLoaderColumn("dname", PgSqlType.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