-1

Since NHibernate mandates a Transaction for all upates, I think the default
for SessionScope should not be AutoFlush.  This also seems to suggest
TransactionScope should remain FlushMode.Commit.  I think this is the
preferred approach since readonly operations will not be penalized by
NHibernate having to check dirty entities.

On Sat, Nov 1, 2008 at 5:00 PM, Markus Zywitza <[EMAIL PROTECTED]>wrote:

> Hello
>
> Earlier today I commited a patch to ActiveRecord that restored the
> behaviour of SessionScope with respect to flushing. This change was crucial
> for a release because it prevents user from having to flush manually when
> using session scopes.
>
> I also want to change TransactionScope to use FlushMode.Auto instead of
> FlushMode.Commit. This would be a breaking change, but it also standardizes
> flushing behaviour for all types of scopes. This helps especially in DDD
> since the transaction can be controlled outside of the model, with no manual
> flushes necessary. Additionally, there is no difference between code running
> in SessionScope and code running in a TransactionScope.
>
> Other ideas I'd love to see in 1.0, but that could also come in 1.1:
>
>    - StatelessSessionScope
>    - Event support (configuration/Windsor)
>    - Adding hbm.xml files for hybrid AR/NH use.
>
> So what are your opinions on
>
>
>    1. changing TransactionScope and
>    2. releasing now or first completing NH2.0 support?
>
> -Markus
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to