TechTalk Genome v4.2

Field Mappings

The field mapping features determine the representation of properties in the underlying relational database system. Persistent properties are mapped with one of the field mappings that store the property values in a database field. Field mappings are applied on abstract properties of persistent classes. Persistent properties are similar to the fields (member variables) of .NET classes.

The <PersistentField> element stores the scalar persistent property in a database field. Platform conversion is only performed when the property is accessed.

The <NearObjectReference> element can be used to store references to the same DataDomain. In this case, the identity fields of the referred object are stored in one or more database fields. This concept corresponds to the foreign key paradigm of database systems.

The <Ignore> element can be used to mark the property as ignored, making it unusable in client code or OQL expressions, but allowing the schema to be compiled.

See Also

XmlMapping.Elements.PersistentField | <NearObjectReference> Element | <Ignore> Element