Ah and from NH2.0 there is no AutoFlush outside a Transaction, you should
work with transactions if you are using NH2.0 and in general...you should
work with transactions.
An RDBMS is a transaction engine...if you don't manage them the RDBMS will
manage the transactions...and that's not what you want in general.
For example in SQL Server it will auto commit every sql you sent...you want
to commit every time or you want to commit when you made all the work in
your current use case, having the option to rollback?

Gustavo.

On Mon, Oct 27, 2008 at 9:14 PM, Gustavo Ringel <[EMAIL PROTECTED]>wrote:

> SaveOrUpdate has nothing to do with DB, it tells NHibernate to register the
> entity as a persistent entity and it puts it in the 1st level cache.
> You should never expect as a rule to hit the DB while saving/updating or
> deleting. You will get a hit or not depending on a lot of considerations...
>
> Gustavo.
>
>
> On Mon, Oct 27, 2008 at 9:09 PM, Berke <[EMAIL PROTECTED]> wrote:
>
>>
>> And this makes sense to me, if I was using transactions right now,
>> I've not explicitly setup a transaction, so I would assume the
>> behavior would be to persist the update when I call SaveOrUpdate,
>> (sort of like an implicit transaction that my entire save should
>> commit or roll back).
>>
>> Josh
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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