dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlLoaderColumn Class / MySqlLoaderColumn Constructor / MySqlLoaderColumn Constructor(String,MySqlType,Int32,Int32,Int32)
The name of the column.
One of the MySqlType values.
Maximum size of column data.
The precision of the column.
The scale of the column.
Example

In This Topic
    MySqlLoaderColumn Constructor(String,MySqlType,Int32,Int32,Int32)
    In This Topic
    Initializes a new instance of the MySqlLoaderColumn 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 MySqlType, _
       ByVal size As Integer, _
       ByVal precision As Integer, _
       ByVal scale As Integer _
    )
    public MySqlLoaderColumn( 
       string name,
       MySqlType dbType,
       int size,
       int precision,
       int scale
    )

    Parameters

    name
    The name of the column.
    dbType
    One of the MySqlType 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 MySqlLoaderColumn instance with custom column name, data type, data size, precision and scale.
    Example
    The following example creates a MySqlLoaderColumn and sets some of its properties.
    public void CreateMyLoaderColumn(MySqlLoader loader)
    {
      ...
      MySqlLoaderColumn column = new MySqlLoaderColumn("deptno", MySqlType.Int, 0, 6, 0);
      loader.Add(column);
      ...
    }
    Public Sub CreateMyLoaderColumn(loader as MySqlLoader)
      ...
      Dim column as MySqlLoaderColumn = new MySqlLoaderColumn("deptno", MySqlType.Int, 0, 6, 0)
      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