第九章:XML文档集成实体键类

本文仅供AX从业者和爱好者学习交流之用,由于原文版权问题,请勿转载
AifEntityKey
类用于需要一个或多个特定记录的操作,也被作为create和createList操作的返回值。一个AifEntityKey 实例标志AX数据库中的一条记录。它由表ID,该表唯一索引的字段ID和相应字段的值组成。另外,它包含获取记录的记录ID,下面的代码展现了类AxdBaseCreate 的部分实现。
protected void setEntityKey()
{
    Map     keyData;
    ;
    keyData 
= SysDictTable::getKeyData(axBcStack
.top().currentRecord());

    entityKey 
= AifEntityKey::construct();
    entityKey.parmTableId(axBcStack.top()
.currentRecord().TableId);
    entityKey.parmRecId(axBcStack.top()
.currentRecord().RecId);
    entityKey.parmKeyDataMap(keyData);

// More code lines go here.

}

原文地址:https://www.cnblogs.com/Farseer1215/p/830907.html