Click or drag to resize
DBTable.CreateNewField Method (DBDriverBase, Int32, String, Int32, Int32, Int32, Boolean)
Creates a new field based on the elements specified. It assumes there are no fields with the name specified already in this target. The field is added at the end of the fields list.

Namespace:  SD.LLBLGen.Pro.DBDriverCore
Assembly:  SD.LLBLGen.Pro.DBDriverCore (in SD.LLBLGen.Pro.DBDriverCore.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public DBTableField CreateNewField(
	DBDriverBase driverToUse,
	int dbType,
	string fieldName,
	int length,
	int precision,
	int scale,
	bool isNullable
)

Parameters

driverToUse
Type: SD.LLBLGen.Pro.DBDriverCore.DBDriverBase
The driver to use.
dbType
Type: System.Int32
Type of the db.
fieldName
Type: System.String
Name of the field.
length
Type: System.Int32
The length.
precision
Type: System.Int32
The precision.
scale
Type: System.Int32
The scale.
isNullable
Type: System.Boolean
True if the field is nullable

Return Value

Type: DBTableField
The created new field or null if no field could be created.
See Also