Multiple ORM statements in one transaction Home › Forums › kbmMW › Multiple ORM statements in one transaction This topic contains 1 reply, has 2 voices, and was last updated by kimbomadsen 2 weeks, 2 days ago. Log In Register Lost Password Author Posts September 27, 2019 at 13:34 #54205 mrluigi2017Participant Hi, How can I use the same transaction for multiple orm methods? I saw that I can pass a transaction, but I don’t know how to obtain it. Thanks in advance. Kind regards, Luigi October 2, 2019 at 10:05 #54213 kimbomadsenKeymaster Hi, var tx:TkbmMWTransaction; begin tx:=TkbmMWTransaction.Create; try tx.StartTransaction; try ORM.Insert(data,…,tx); ORM.Insert(data2,…,tx); tx.CommitTransaction; except tx.RollbackTransaction; end; end; best regards Kim/C4D Author Posts Log In Register Lost Password You must be logged in to reply to this topic.