ComponentOne FlexPivot for WinForms
C1.DataEngine Assembly / C1.DataEngine Namespace / Connector Class / AddNewColumns Method / AddNewColumns(Workspace,IDataReader,String,Int64) Method
Workspace containing the DataEngine table.
Reader providing the data for the new columns.
The name of the DataEngine table.
Optional number of rows to import. If count is 0 (default), import all rows.

In This Topic
    AddNewColumns(Workspace,IDataReader,String,Int64) Method
    In This Topic
    Add new columns to an existing DataEngine table.
    Syntax
    'Declaration
     
    Public Overloads Shared Function AddNewColumns( _
       ByVal workspace As Workspace, _
       ByVal reader As IDataReader, _
       ByVal tableName As String, _
       Optional ByVal count As Long _
    ) As Long
    public static long AddNewColumns( 
       Workspace workspace,
       IDataReader reader,
       string tableName,
       long count
    )

    Parameters

    workspace
    Workspace containing the DataEngine table.
    reader
    Reader providing the data for the new columns.
    tableName
    The name of the DataEngine table.
    count
    Optional number of rows to import. If count is 0 (default), import all rows.
    Remarks
    This method throws an exception if the specified columns already exist.
    See Also