You are currently reviewing an older revision of this page.
Document Type: TechNote Product(s): OpenPlant PowerPID Version(s): 08.11.07.42 Original Author: Gerd Eichler
Document Type: TechNote
Product(s): OpenPlant PowerPID
Version(s): 08.11.07.42
Original Author: Gerd Eichler
It is well known that there is no strong agreement between relational data model and object data model. To bring them into agreement the ECSchemaMapping was created. It complies data base tables, columns and foreign keys to classes, properties and relationships of object model. All the information is stored in an xml file (called "mapping file"). The mapping file is necessary for the Plant Project DBPlugin. The Plugin is used to read and write data from and to the application database. The SchemaMappingAPI is a library that represents mapping object model. It proposes mapping items (class maps, relationship maps and property maps) and allows serialization and deserialization of mapping information into the XML document. The library, however does not provide an easy-to-use approach to edit these mapping items. For these purposes the Mapping Extension for the Bentley Class Editor was created.
The structure of the ECSchema Mapping mostly repeats the structure of an ECSchema. A simplified diagram showing the structure of the schema mapping is on Fig. 1. The main entities of the mapping are corresponding to the main entities in the ECSchema. Thus ECSchemaMap relates to an ECSchema, ECClassMap relates to an ECCClass and ECPropertyMap relates to an ECProperty.
Operations with Schema Mapping and Plant Project Database Mapping Add-in panel
Mappings
Mapping Validation and Repairing a Mapping
Schema Mapping Custom Attributes