No, that makes no difference. FYI i am using 2.0 Mikael
On 25 Okt, 16:13, "Fabio Maulo" <[EMAIL PROTECTED]> wrote: > mmmm....was fixed before release > NH2.0.0http://jira.nhibernate.org/browse/NH-1348 > > 2008/10/25 Fabio Maulo <[EMAIL PROTECTED]> > > > > > > > And if you use <listener type="load" > > class=""NhibernateSandbox20.Domain.Listner, NhibernateSandbox20.Domain"/> > > > it work ? > > > If I well remember there was a bug in NH2.0 but I don't remember if it was > > fixed in 2.0.1 or 2.1.0(trunk). > > Let me check it. > > > 2008/10/25 Mikael <[EMAIL PROTECTED]> > > >> Here is the hibernate section that is declared in App.comfig > > >> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> > >> <bytecode-provider type="lcg"/> > >> <reflection-optimizer use="true"/> > >> <session-factory name="NHibernate.Test"> > >> <!--<property > >> name="connection.provider">NHibernate.Test.DebugConnectionProvider, > >> NHibernate.Test</property>--> > >> <property > >> name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, > >> NHibernate</property> > >> <property > >> name="cache.use_query_cache">true</property> > >> <property name="prepare_sql">false</property> > >> <property > >> name="query.startup_check">false</property> > >> <!-- > >> The valid strings for Isolation can be > >> found in the documentation > >> for the System.Data.IsolationLevel > >> Enumeration documentation. > >> Use the member names - not the values. > >> --> > >> <property > >> name="connection.isolation">ReadCommitted</property> > > >> <!-- This is the System.Data.dll provider for MSSQL > >> Server --> > >> <property > >> name="connection.driver_class">NHibernate.Driver.SqlClientDriver</ > >> property> > >> <property name="connection.connection_string"> > >> Server=Me145\sql2005;initial > >> catalog=nhibernate;Integrated > >> Security=SSPI > >> </property> > >> <property name="show_sql">false</property> > >> <property > >> name="dialect">NHibernate.Dialect.MsSql2005Dialect</ > >> property> > >> <property name="use_outer_join">true</property> > >> <property name="command_timeout">444</property> > >> <property name="query.substitutions">true 1, false > >> 0, yes 'Y', no > >> 'N'</property> > >> <property > >> name="adonet.wrap_result_sets">false</property> > > >> <event type="load" > > >> <listener > >> class="NhibernateSandbox20.Domain.Listner, > >> NhibernateSandbox20.Domain" /> > >> </event> > > >> </session-factory> > >> </hibernate-configuration> > > >> And NhibernateSandbox20.Domain.Listner has implented > >> ILoadEventListener > > >> namespace NhibernateSandbox20.Domain > >> { > >> public class Listner : ILoadEventListener > >> { > >> public void OnLoad(LoadEvent loadEvent, LoadType loadType) > >> { > >> ...... > > >> } > >> } > >> } > >> if NhibernateSandbox20.Domain.Listner is programmatically added > >> to configuration then everything is working as expected. > > >> Mikael > > >> On 25 Okt, 13:15, "Fabio Maulo" <[EMAIL PROTECTED]> wrote: > >> > please, show it. > > >> > 2008/10/25 Mikael <[EMAIL PROTECTED]> > > >> > > I have no problem at all to programmatically declaring my ow and > >> > > default listeners to configuration, but when a try to do it in the > >> > > configuration section i just see the default listener registered. > > >> > > What are I'm doing wrong ? > > >> > > I have used the syntax from documentation. > > >> > > Mikael > > >> > -- > >> > Fabio Maulo > > > -- > > Fabio Maulo > > -- > Fabio Maulo- Dölj citerad text - > > - Visa citerad text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
