@Craig, That's what I had figured, too. However I have dropped any
IRepository<T> usage so am thinking of dropping the UnitOfWork and replacing
with NHibernateFacility maybe. Not sure if that would make things lighter
weight or not though.

On Wed, Jun 24, 2009 at 6:42 AM, Craig Neuwirt <[email protected]> wrote:

> Right, so wouldn't using UnitOfWork make it simpler, like we do for
> ASP.NET, WCF, ...
>
>
> On Wed, Jun 24, 2009 at 8:40 AM, Victor Kornov <[email protected]> wrote:
>
>> I guess that's a question to you ;) Depends on how you manage
>> SessionFactories.In context of RSB & message handlers, you can simply
>> open a session yourself at the beginning of handler method. This should be
>> the only place where you need to get Sessions.
>>
>>
>> On Wed, Jun 24, 2009 at 5:15 PM, Craig Neuwirt <[email protected]>wrote:
>>
>>> So without UnitOfWork, how are sessions made able to the application?
>>>
>>>
>>> On Tue, Jun 23, 2009 at 2:06 PM, Ayende Rahien <[email protected]>wrote:
>>>
>>>> UnitOfWork doesn't really give you much anyway.
>>>>
>>>> 2009/6/23 João Bragança <[email protected]>
>>>>
>>>>
>>>>> With better transaction support in 2.1 should we continue to use
>>>>> UnitOfWork?
>>>>>
>>>>> On Jun 23, 11:09 am, Ayende Rahien <[email protected]> wrote:
>>>>> > Not quite.It will work with previous versions as well, but not as
>>>>> well, and
>>>>> > you would still need to manage NH transactions on your own.
>>>>> >
>>>>> > On Tue, Jun 23, 2009 at 6:10 PM, Corey Kaylor <[email protected]>
>>>>> wrote:
>>>>> > > Yes, this will only work for NH 2.1.
>>>>>
>>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to