Click or drag to resize

DBTableCreateNewField 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.4.0.0 (5.4.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.DBDriverCoreDBDriverBase
The driver to use.
dbType
Type: SystemInt32
Type of the db.
fieldName
Type: SystemString
Name of the field.
length
Type: SystemInt32
The length.
precision
Type: SystemInt32
The precision.
scale
Type: SystemInt32
The scale.
isNullable
Type: SystemBoolean
True if the field is nullable

Return Value

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