Skip to content

TabDbfColumn

Namespace: ThinkGeo.Core

Represents the TabDbfColumn class.

public class TabDbfColumn : DbfColumn

Inheritance objectFeatureSourceColumnDbfColumnTabDbfColumn

Properties

BuildIndex

Gets or sets a value indicating whether an index should be created for this column.

public bool BuildIndex { get; set; }

Property Value

bool

UniqueIndexColumnValues

Gets or sets a value indicating whether the indexed column values must be unique.

public bool UniqueIndexColumnValues { get; set; }

Property Value

bool

ColumnType

Gets or sets the DBF column type.

public DbfColumnType ColumnType { get; set; }

Property Value

DbfColumnType

Length

Gets or sets the length, in characters, of the DBF column.

public int Length { get; set; }

Property Value

int

DecimalLength

Gets or sets the number of decimal places used for numeric DBF columns.

public int DecimalLength { get; set; }

Property Value

int

Remarks:

This is the number of decimal places the number represents. This is only applicable if the column type is numeric.

ColumnName

Gets or sets the name of the column.

public string ColumnName { get; set; }

Property Value

string

TypeName

Gets or sets the type metadata associated with the column.

public string TypeName { get; set; }

Property Value

string

Remarks:

This property is freeform and the type name is not tied to anything. It is wise to try and use familiar type names such as string, integer, date, etc., although it may not fit every different type of FeatureSource. We suggest thar you avoid using this property unless you know the types beforehand or simply want them for display purposes.

MaxLength

Gets or sets the maximum length (in characters) for the column.

public int MaxLength { get; set; }

Property Value

int

Remarks:

The maximum length is user defined and not in any way enforced in our default FeatureSource implementation. It is mainly for display purposes or when dealing with a known Feature Source type.

Constructors

TabDbfColumn()

Initializes a new instance of the TabDbfColumn class with default settings.

public TabDbfColumn()

TabDbfColumn(string, DbfColumnType, int, int, bool, bool)

Initializes a new instance of the TabDbfColumn class with the specified schema and index settings.

public TabDbfColumn(string columnName, DbfColumnType columnType, int length, int decimalLength, bool buildIndex, bool uniqueIndexColumnValues)

Parameters

columnName string
The name of the column in the DBF.

columnType DbfColumnType
The type of the column in the DBF.

length int
The maximum length of the column.

decimalLength int
The number of decimal places for numeric columns.

buildIndex bool
Indicates whether an index should be created for this column.

uniqueIndexColumnValues bool
Indicates whether the index should enforce unique values.