BaseField Class

From RemObjects Software

Jump to: navigation, search

This is a Data Abstract Architecture entry
Feel free to add your notes to this topic below.



Overview (.NET)

Base class for schema elements such as SchemaField and SchemaParameter.

Namespace

Declaration (C#)

public class BaseField : BusinessSchemaElement;

Hierarchy

Properties

Property
Type
Description
BlobType BlobType Controls the update or insert SQL text that will get auto-generated for a field or parameter whose data type is either Memo or Blob.

Note: this property only needs to be set if you are working with an Oracle database. In all other situations, setting the DataType property is sufficient.

DataType DataType Defines the data type of this element.
GeneratorName String The name of the generator that needs to be queried to get the field value, whenever inserting a new row.

Note: this property only needs to be set whenever the DataType value is DataType.AutoInc and you're supporting databases that don't have a native auto increment field type (for example InterBase or Oracle).

For example, you have a Microsoft SQL Server database with a Customers table whose primary key is an integer identity field called "CustomerID". You also have an InterBase replica of this database: the primary key "CustomerID" is still of type integer, but you have a generator called "GEN_CustomerID" that you need to query before inserting a new row in the "Customers" table. When you are in a situation like this, you would set DataType to DataType.AutoInc and Generator name to "GEN_CustomerID". The value will be ignored when updating the Microsoft SQL Server database, but will be used when on InterBase.

Size UInt The size of this field.

Note: you only need to set the field's size when the DataType value is set to DataType.String. You can leave it set to zero for all the other data types.


Methods

Method
Description
AssignToColumn Copies all the properties of the element to the matching properties of a System.Data.DataColumn object.

Note: this is a utility function used, for instance, by the DataSetUtils.ApplyDataTableSchema method.

BaseField Default constructor for BaseField.


See Also


Product: RemObjects Data Abstract
Current version: Data Abstract 'Vinci' (5.0)

ListsGlossaryFeaturesHow ToDriversComponentsToolsSamplesArticlesArchitectureIssues

Personal tools