Class bpxField
- Namespace
- PolarDataInterop.Catalog
- Assembly
- PolarDataInterop.dll
This class contains the details of a field in the catalog.
public class bpxField
- Inheritance
-
bpxField
- Inherited Members
- Extension Methods
Properties
AutoNumber
Returns True if this field is an autonumber.
public bool AutoNumber { get; }
Property Value
BaseColumnName
Returns the name of the base column. Specifically for fields in views.
public string BaseColumnName { get; }
Property Value
BaseField
Returns the catalog-field for the base-field. Specifically for fields in views.
public bpxField BaseField { get; }
Property Value
BaseTableName
Returns the name of the base table. Specifically for fields in views.
public string BaseTableName { get; }
Property Value
Catalog
Returns the catalog this field is part of.
public bpxCatalog Catalog { get; }
Property Value
DefaultValue
Returns the DefaultValue as SQL expression.
public string DefaultValue { get; }
Property Value
Description
Returns the description for this field in the extended properties of the database.
public string Description { get; }
Property Value
FieldType
Returns the type of field.
public string FieldType { get; }
Property Value
ForeignKey
Returns the foreign key for this field (if it is a foreign key field).
public bpxForeignKey ForeignKey { get; }
Property Value
HasDefaultValue
Returns True if this field has a default value.
public bool HasDefaultValue { get; }
Property Value
MaxLength
Returns the maximum length of text fields.
public int MaxLength { get; }
Property Value
Name
Returns the name.
public string Name { get; }
Property Value
NumericPrecision
Returns the numeric precision
public int NumericPrecision { get; }
Property Value
NumericScale
Returns the numeric scale
public int NumericScale { get; }
Property Value
Required
Returns True if this field is required.
public bool Required { get; }
Property Value
Table
Returns the catalog table this field is part of.
public bpxTable Table { get; }
Property Value
TableName
Returns the name of the table.
public string TableName { get; }
Property Value
Methods
CreateFieldSQL()
Returns the SQL expression to create this field (without foreign key).
public string CreateFieldSQL()
Returns
- string
A string like: CustomerName VARCHAR(100) NOT NULL
DefaultValueAsScriptExpression()
Returns a script-expression that tries to match the SQL server default value.
public string DefaultValueAsScriptExpression()
Returns
- string
A script expression. If no match, the default value is returned unchanged to let the programmer make a wise decision.
ToString()
public override string ToString()
Returns
ToString(clsString)
Adds the string-representation for this field to the specified pResult.
public void ToString(clsString pResult)
Parameters
pResult
clsStringThe clsString object to add the field-string to.