.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

transaction and object for read

0 REPLIES 0
Reply
Message 1 of 1
base2
114 Views, 0 Replies

transaction and object for read

Hi this is my question:
an object, for example, an Xrecord, get in openmode for read, it it must be used only in the transaction context in which it is read?
can I return it by a funcion, for example?

ex.
Xrecord myFunction()
{
Xrecord xr = null;
start transaction
get the xrecord in xr in mode for read
commit trans
return xr;
}

Xrecord xrec = myFunction()

is it correct?

thank you
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost