The LightSpeed Metamodel
LightSpeed provides three classes that represent entity metadata:
· EntityInfo represents an entity class.
· FieldInfo represents an attribute of an entity.
· AssociationInfo represents an association between entities. It is derived from FieldInfo because associations are a particular kind of field.
· ValidationInfo represents details of a validation which is being applied to an entity and will be based on a validation rule.
Note that an EntityInfo represents a class, not an individual entity instance. Similarly, a FieldInfo represents a class member, not an instance of the field on a particular entity instance.
Referencing the Metadata Assembly
As metadata is only required in occasional cases, the metadata classes are not included in the main LightSpeed assembly. To use the metadata classes, you must add a reference to the Mindscape.LightSpeed.MetaData assembly, found in the installation directory under the Bin folder.