HI!

I guess you read this
http://nhforge.org/wikis/burrow/default.aspx?PageIndex=1

You choose which kind of conversation I want, default in
NHibernate.Burrow.Webutil is one transaction per request.

You can do an explicit call to new BurrowFrameWork
().CurrentCOnverstion.GiveUp() for rollback or
.CloseWorkspace() to commit, which is also done in the end of the
request.

You could also checkout the source for code-examples.

On Oct 23, 1:39 pm, kor <[email protected]> wrote:
> hi all, i don't find a group/forum specific to burrow, if it exists i
> will move the question there...
>
> i don't understand how works a itransaction using burrow, i see the
> examples that are in nh addins but i already don't understand how it
> works.
>
> usually there's an http module where a isession will be open/close
> when a request start/end and the code is samething as
>
>  - begin a itransaction using the context session
>  - do samething
>  - commit or rollback if there's same exception
>
> in the example of burrow there isn't an explicit transaction commit or
> rollback , for example the code is simply
>
>  new CustomerDAO().Save(c);
>
> and also in the documentation the description is:
> By default, that is, if you don't pass a TransactionStrategy to the
> method, Burrow will use one transaction per request pattern - it opens
> the transaction at the beginning of the request and commit it at the
> end of the request, which means that the long conversation is break
> into multiple atomic transactions, data change will be updated to DB
> on every request!
>
> so i don't understand how the exception are managed (ie if there's an
> exception how burrow can understand if it must commit or rollback at
> the end of the web request?)
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to