[]
        
(Showing Draft Content)

C1.DataEngine.Connector.AddNewColumns

AddNewColumns Method

AddNewColumns(string, long)

Add new columns to an existing DataEngine table.

Declaration
public abstract long AddNewColumns(string tableName, long count = 0)
Parameters
Type Name Description
string tableName

The name of the DataEngine table.

long count

Optional number of rows to import. If count is 0 (default), import all rows.

Returns
Type Description
long
Remarks

This method throws an exception if the specified columns already exist.

AddNewColumns(Workspace, IDataReader, string, long)

Add new columns to an existing DataEngine table.

Declaration
public static long AddNewColumns(Workspace workspace, IDataReader reader, string tableName, long count = 0)
Parameters
Type Name Description
Workspace workspace

Workspace containing the DataEngine table.

IDataReader reader

Reader providing the data for the new columns.

string tableName

The name of the DataEngine table.

long count

Optional number of rows to import. If count is 0 (default), import all rows.

Returns
Type Description
long
Remarks

This method throws an exception if the specified columns already exist.