dotConnect for Snowflake Documentation
Devart.Data.Snowflake Namespace / SnowflakeLoaderColumnCollection Class / Add Method / Add(String,SnowflakeType,Int32,Int32,Int32) Method
The name of the column.
The column type.
The column size.
The column precision.
The column scale.
Example

On this page
    Add(String,SnowflakeType,Int32,Int32,Int32) Method
    On this page
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal name As String, _
       ByVal dbType As SnowflakeType, _
       ByVal size As Integer, _
       ByVal precision As Integer, _
       ByVal scale As Integer _
    ) As Integer
    public int Add( 
       string name,
       SnowflakeType dbType,
       int size,
       int precision,
       int scale
    )

    Parameters

    name
    The name of the column.
    dbType
    The column type.
    size
    The column size.
    precision
    The column precision.
    scale
    The column scale.

    Return Value

    The new item's ordinal.
    Example
    The following example creates a SnowflakeLoaderColumnCollection, adds an instance of SnowflakeLoaderColumn to the collection, and returns a reference to the new SnowflakeLoaderColumn.
    public void CreateMyLoaderColumnColl(SnowflakeInternalLoader myLoader)
    {
      SnowflakeLoaderColumnCollection myColumnCollection = myLoader.Columns;
      myColumnCollection.Add("DEPTNO", SnowflakeType.Integer, 0, 0, 0);
      myColumnCollection.Add("DNAME", SnowflakeType.String, 0, 0, 0);
      myColumnCollection.Add("LOC", SnowflakeType.String, 0, 0, 0);
    }
    Public Sub CreateMyLoaderColumnColl(myLoader As SnowflakeInternalLoader)
      Dim myColumnCollection As SnowflakeLoaderColumnCollection = myLoader.Columns
      myColumnCollection.Add("DEPTNO", SnowflakeType.Integer, 0, 0, 0)
      myColumnCollection.Add("DNAME", SnowflakeType.String, 0, 0, 0)
      myColumnCollection.Add("LOC", SnowflakeType.String, 0, 0, 0)
    End Sub
    See Also