Parameters
- name
- The name of the column.
- dbType
- One of the MySqlType values.
- size
- Maximum size of the column data (for strings only).
- precision
- The precision of the column.
- scale
- The scale of the column.
Return Value
The new column's ordinal.
public void CreateMyLoaderColumnColl(MySqlLoader myLoader) { MySqlLoaderColumnCollection myColumnCollection = myLoader.Columns; myColumnCollection.Add("DeptNo", MySqlType.Int); myColumnCollection.Add("DName", MySqlType.VarChar); myColumnCollection.Add("Loc", MySqlType.VarChar); }
Public Sub CreateMyLoaderColumnColl(myLoader As MySqlLoader) Dim myColumnCollection As MySqlLoaderColumnCollection = myLoader.Columns myColumnCollection.Add("DeptNo", MySqlType.Int) myColumnCollection.Add("DName", MySqlType.VarChar) myColumnCollection.Add("Loc", MySqlType.VarChar) End Sub
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