如何在 DDL 脚本中使用 TaggedValues?

How can I use TaggedValues within a DDL script?

我想为我的数据模型生成 table 创建代码。这很好用,我已经更改了默认的 DDL 模板。

现在我有一个可以为 table (TemporalTable) 设置或不设置的功能。这反过来将根据 TaggedValue 值生成不同的 DDL (sql) 代码。

如何从 DDL 模板脚本中的 table 访问 TaggedValue?

帮助中描述了您要查找的内容here

对于 table 上的用户定义标记值将是:

tableUserProperty:"propertyName" Returns the value for the user-defined property in the repository's version of the current Table.

Parameters

  • propertyName - the property name that is to be retrieved

Remarks

None.