从AX2012以来引入了Unitofwork,实现的具体步骤,参见下面的链接地址。
https://docs.microsoft.com/en-us/dynamicsax-2012/developer/how-to-use-the-unitofwork-class-to-manage-database-transactions?redirectedfrom=MSDN
D365(10.0.0.10)的Create Navigation Property Methods有点问题,Related Table Role属性的值必须要跟Relation的名字一样,调用的时候才能正确取到主表的值,如果不一样,虽然编译不会报错,但是执行的时候取不到值。
也会导致UnitofWork执行的时候,从表的外键值不会自动赋值为主表的RecId。
UnitOfWork

上图中的两个值必须一样(不区分大写),否则取不到主表的值。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2020-05-20
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案