CodeGen融合核心关系循环扩展
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".
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)