最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

[转]Microsoft Dynamic AX 的doInsert/Inset;doupdate/update的区别

Uncategorized William 3518浏览 0评论

原文地址:http://blog.csdn.net/kings1108/archive/2009/04/24/4114569.aspx

update 是执行表里update的方法,再update到数据库。

doupdate 是直接update到数据库,不执行表里的update的方法。

doinset,inset同理。。。。。。

这两个方法都是Xrecord类的方法,都会在插入数据时产生系统字段。

区别是:Insert()方法执行完父类的方法后还执行表里的Insert方法(可以被重载),

DoInsert()不被重载,不执行表里Insert()方法,只执行父类方法。

Clear 和Doclear,delete和Dedelete等方法意义类似;

The difference is that the first one (insert) besides actually inserting the
record also calls the insert method on the table in the AOT.

There can be some additional logic in this method, which would be called in
this case.

(see InventTrans.insert(), for example – the Inventory on Hand is updated at
this time)

The doInsert method skips the data method on the table.

转载请注明:ww12345678 的部落格 | AX Helper » [转]Microsoft Dynamic AX 的doInsert/Inset;doupdate/update的区别

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址