Is this by design? I have to manually create a transaction within them.

v4.4

asked Jan 13 '11 at 19:12

ara's gravatar image

ara
395868791

edited Jan 13 '11 at 21:49

Dmitri%20Maximov's gravatar image

Dmitri Maximov
22111211


One Answer:

Hello Ara,

The presence of auto transactions depends on SessionProfile you are using. I suspect, the default one (SessionProfile.Server) is being used which doesn't provide them. Consider switching to SessionProfile.Legacy or mark transactional members of ISessionService implementor with [Transactional] attribute.

More about session profiles: DataObjects.Net Beta 1 release notes

answered Jan 13 '11 at 22:10

Dmitri%20Maximov's gravatar image

Dmitri Maximov
22111211

Yes, Server profile. If I use Transactional attribute, will it call transactionScope.Complete() for me at the end of my method?

(Jan 13 '11 at 22:13) ara ara's gravatar image

Definitely

(Jan 13 '11 at 22:20) Dmitri Maximov Dmitri%20Maximov's gravatar image

Your response times are out of this world. Thank you.

(Jan 13 '11 at 22:35) ara ara's gravatar image

You are welcome =)

(Jan 13 '11 at 22:37) Dmitri Maximov Dmitri%20Maximov's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA