CodeGen融合核心关系循环扩展
Expansion Tokens
<HARMONYCORE_RELATION_NAME>
插入当前关系的名称。关系名称将自动生成,但可以由Harmony Core自定义文件中CustomRelationNames属性中的条目覆盖。
替代形式:无
<HARMONYCORE_FROM_RELATION_NAME>
在指向当前结构的目标结构中插入关系属性的名称。该名称将自动生成,但可以由Harmony Core自定义文件中CustomRelationNames属性中的条目覆盖。
替代形式:无
Expressions
<IF ONE_TO_MANY>
The relationship is a one-to-many relationship and a matching relationship is NOT defined in the opposite direction.
<IF ONE_TO_ONE>
The relationship is a one-to-one relationship and a matching relationship is NOT defined in the opposite direction.
<IF ONE_TO_MANY_TO_ONE>
The relationship is a one-to-many relationship and a matching relationship IS defined in the opposite direction.
<IF ONE_TO_ONE_TO_ONE>
The relationship is a one-to-one relationship and a matching relationship IS defined in the opposite direction.
<IF MANY_TO_ONE_TO_MANY>
The relationship is a many-to-one relationship and a matching relationship IS defined in the opposite direction.
<IF REQUIRES_MATCH> (deprecated)
关系要求匹配数据必须存在于关系所针对的文件中,这样本地字段中的数据才会被视为有效。默认情况下,所有关系默认要求“to”结构文件中的匹配数据,但这可以通过添加“RequiresMatch”来覆盖:HarmonyCoreRelations部分的关系的自定义条目错误。
<IF TO_MANY>
The relationship targets one of multiple records (i.e. it is a one-to-many or one-to-many-to-one relationship).
<IF TO_ONE>
The relationship targets a single record (i.e. it is a one-to-one, one-to-one-to-one or many-to-one relationship).
<IF VALIDATION_NONE>
The ValidationMode property in the Harmony Core Customization file is set to a value of "None".
<IF VALIDATION_VALUE_PRESENT>
The ValidationMode property in the Harmony Core Customization file is set to a value of "ValuePresent".
<IF VALIDATION_ALWAYS>
The ValidationMode property in the Harmony Core Customization file is set to a value of "Always".
<IF VALIDATION_CUSTOM_CODE>
The ValidationMode property in the Harmony Core Customization file is set to a value of "CustomCode".