Sorry filip you are right, i downloaded your example in github and all tests
are in green.. Did you find the solution to your problem or missed
something?

2011/5/11 Filip Kinský <[email protected]>

> I guess by *after* you mean this:
>
> listeners.FlushEntityEventListeners
> = listeners.FlushEntityEventListeners.Concat(new IFlushEntityEventListener[]
> {new MyModificationTimeTrackingListener()}).ToArray();
>
> That's just the problem I was facing before and wasn't aware of. It looks
> like the last IFlushEntityEventListener is responsible for persisting data
> into DB, so if the auditing listener is the last one and not the
> DefaultFlushEntityEventListener (which is probably added by NH as default
> listner) than data isn't peristed into DB as they should in some cases. In
> this case two tests were failing in this test:
> https://github.com/Buthrakaur/NHListenerTests/blob/master/NHListenerTest/SetModificationDateListenerTests.cs
>  - InheritedThing_LastModified_Should_BeSetOnUpdate
> + InheritedThing_LastModified_Should_BeSetOnImplicitUpdate.
>
>
> On Wed, May 11, 2011 at 4:45 PM, José F. Romaniello <
> [email protected]> wrote:
>
>> (i mean the your handler)...
>>
>> 2011/5/11 José F. Romaniello <[email protected]>
>>
>> Hi Filip, what hapen if you put your event *after* the nhibernate events
>>> (instead of before)?
>>>
>>>
>>> 2011/5/11 Filip Kinsky <[email protected]>
>>>
>>>> fully working IFlushEntityEventListener can be found here:
>>>> https://github.com/Buthrakaur/NHListenerTests/blob/master/NHListenerTest/SetModificationTimeFlushEntityEventListener.cs
>>>>
>>>> --
>>>> 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.
>>>>
>>>
>>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

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