<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-3198935374994345981.post8945430449574113659..comments</id><updated>2010-03-12T01:34:30.021+01:00</updated><category term='Reviews'/><category term='AOP'/><category term='LINQ'/><category term='Microsoft'/><category term='MVC'/><category term='IoC'/><category term='Javascript'/><category term='MGrammar'/><category term='ALT.NET'/><category term='Logging'/><category term='Misc'/><category term='Design'/><category term='Castle'/><category term='Security'/><category term='MSBuild'/><category term='Science'/><category term='Presentations'/><category term='ASP.NET MVC'/><category term='ASP.NET'/><category term='C#'/><category term='M'/><category term='Design By Contract'/><category term='TDD'/><category term='MonoRail'/><category term='Boo'/><category term='Git'/><category term='Graphics'/><category term='CQRS'/><category term='WCF'/><category term='Oslo'/><category term='Agile'/><category term='PDC'/><category term='CMS'/><category term='CodeSaga'/><category term='NHibernate'/><category term='DDD'/><category term='Benchmarks'/><category term='HTML/CSS'/><category term='NAnt'/><category term='Slick Code Search'/><category term='WPF'/><category term='Silverlight'/><category term='WatiN'/><title type='text'>Comments on Coding Instinct: NHibernate 2.0 Events and Listeners</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.codinginstinct.com/feeds/8945430449574113659/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html'/><author><name>Torkel Ödegaard</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-4564149231324543090</id><published>2009-12-14T23:22:44.498+01:00</published><updated>2009-12-14T23:22:44.498+01:00</updated><title type='text'>Most of the questions posted here are already answ...</title><content type='html'>Most of the questions posted here are already answered on Ayende&amp;#39;s blog here:  http://ayende.com/Blog/archive/2009/04/29/nhibernate-ipreupdateeventlistener-amp-ipreinserteventlistener.aspx</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/4564149231324543090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/4564149231324543090'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1260829364498#c4564149231324543090' title=''/><author><name>James Yoo</name><uri>http://www.blogger.com/profile/07827767596383255804</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-911914330'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-7077431419946014557</id><published>2009-06-25T17:41:14.923+02:00</published><updated>2009-06-25T17:41:14.923+02:00</updated><title type='text'>How to create new objects within this event?

I&amp;#3...</title><content type='html'>How to create new objects within this event?&lt;br /&gt;&lt;br /&gt;I&amp;#39;m trying to save my audit log in different table, so I must create new object and save it but i doesn&amp;#39;t work.&lt;br /&gt;&lt;br /&gt;New objects are not persisted. :/</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7077431419946014557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7077431419946014557'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1245944474923#c7077431419946014557' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1906453464'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-7226804437092908086</id><published>2009-04-23T23:14:00.000+02:00</published><updated>2009-04-23T23:14:00.000+02:00</updated><title type='text'>When hooking the SaveOrUpdate event it is importan...</title><content type='html'>When hooking the SaveOrUpdate event it is important to also hook the Save and Update events as well, as these will be called for child entities depending on whether the child entities are new or not.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7226804437092908086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7226804437092908086'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1240521240000#c7226804437092908086' title=''/><author><name>Gerke Geurts</name><uri>http://www.blogger.com/profile/05555450726344964705</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://www.geurtsrus.com/gerke/images/gerke.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-291311395'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-5480307975428245112</id><published>2009-03-12T18:26:00.000+01:00</published><updated>2009-03-12T18:26:00.000+01:00</updated><title type='text'>Good question, I am not sure what could cause that...</title><content type='html'>Good question, I am not sure what could cause that. I suggest you post a question on the nhibernate forum or nhibernate users mailing list.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/5480307975428245112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/5480307975428245112'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1236878760000#c5480307975428245112' title=''/><author><name>Torkel Ödegaard</name><uri>http://www.blogger.com/profile/08914354140151859277</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1471368035'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-7186479824969276848</id><published>2009-03-12T10:43:00.000+01:00</published><updated>2009-03-12T10:43:00.000+01:00</updated><title type='text'>hi,&lt;br&gt;&lt;br&gt;nice work!&lt;br&gt;i have to implement a sim...</title><content type='html'>hi,&lt;BR/&gt;&lt;BR/&gt;nice work!&lt;BR/&gt;i have to implement a similar system and want to store a ModifyDate/ModifyUser in my Entities. For my Aggregate Root Entity (XObject) the ISaveOrUpdateEventListener is called and i can update the values the same way as your sample. Problem is, i also want to update the values ModifyUser/Date of a dependent Entity (XObjectVersion) and the Event is not called for the dependant entity.&lt;BR/&gt;&lt;BR/&gt;I also tried to hook in the event 'IPreInsertEventListener' - this is called for both, my Aggregate root entity and my dependant entity BUT when i set values to the entity fields, they are not included in the SQL Statement that is sent to the database.&lt;BR/&gt;&lt;BR/&gt;Has anybody any ideas how to solve this?&lt;BR/&gt;Maybe this is a bug because the sql statement is not sent to the database at this state of the process but changes to entity fields are not recogniced.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7186479824969276848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7186479824969276848'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1236850980000#c7186479824969276848' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-383738138'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-7132239699909976458</id><published>2009-01-21T06:50:00.000+01:00</published><updated>2009-01-21T06:50:00.000+01:00</updated><title type='text'>How can hook this listenere with castle ActiveReco...</title><content type='html'>How can hook this listenere with castle ActiveRecord ?.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7132239699909976458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7132239699909976458'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1232517000000#c7132239699909976458' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1662711880'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-7931495417593666281</id><published>2008-11-21T09:14:00.000+01:00</published><updated>2008-11-21T09:14:00.000+01:00</updated><title type='text'>hi, thanks for your code.&lt;br&gt;Now the only thing i'...</title><content type='html'>hi, thanks for your code.&lt;BR/&gt;Now the only thing i'm experiencing is that when i have a nested category structure (i have a parent Id), and i want to save one of my objects that has another item in it's collection of child members, it repeats twice (for the parent and the child), it's not saved to the database, and it's not giving any errors. I wanted to inspect the PerformSaveOrUpdate method but there is nothing in it, it's just a virtual method.&lt;BR/&gt;&lt;BR/&gt;Greets</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7931495417593666281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/7931495417593666281'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1227255240000#c7931495417593666281' title=''/><author><name>santo2</name><uri>http://www.blogger.com/profile/06293277398061083985</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1122533896'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-1217024711706930812</id><published>2008-08-25T13:55:00.000+02:00</published><updated>2008-08-25T13:55:00.000+02:00</updated><title type='text'>Nice stuff but it seems to modify all object befor...</title><content type='html'>Nice stuff but it seems to modify all object before saving it to database. &lt;BR/&gt;&lt;BR/&gt;I think we need to test if the object isDirty (or something else) ....&lt;BR/&gt;&lt;BR/&gt;Do you have any ideas? ???</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/1217024711706930812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/1217024711706930812'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1219665300000#c1217024711706930812' title=''/><author><name>pdu</name><uri>http://www.blogger.com/profile/08602700684344756721</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1640276321'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-6522944330243501390</id><published>2008-04-17T07:25:00.000+02:00</published><updated>2008-04-17T07:25:00.000+02:00</updated><title type='text'>Are you sure you downloaded the NHibernate 2.0 Alp...</title><content type='html'>Are you sure you downloaded the NHibernate 2.0 Alpha1 release? &lt;BR/&gt;&lt;BR/&gt;It should be there (It is for me) :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/6522944330243501390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/6522944330243501390'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1208409900000#c6522944330243501390' title=''/><author><name>Torkel Ödegaard</name><uri>http://www.blogger.com/profile/08914354140151859277</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1471368035'/></entry><entry><id>tag:blogger.com,1999:blog-3198935374994345981.post-6566318245796849454</id><published>2008-04-17T07:21:00.000+02:00</published><updated>2008-04-17T07:21:00.000+02:00</updated><title type='text'>Hi &lt;br&gt;&lt;br&gt;I tried to work this out with Nhibernat...</title><content type='html'>Hi &lt;BR/&gt;&lt;BR/&gt;I tried to work this out with Nhibernate 2.0 but it still doesnt have the namespace mentioned Nhibernate.Event am I missing something?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/6566318245796849454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3198935374994345981/8945430449574113659/comments/default/6566318245796849454'/><link rel='alternate' type='text/html' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html?showComment=1208409660000#c6566318245796849454' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html' ref='tag:blogger.com,1999:blog-3198935374994345981.post-8945430449574113659' source='http://www.blogger.com/feeds/3198935374994345981/posts/default/8945430449574113659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1818882454'/></entry></feed>
