-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: [BUG ?] UseReflectionOptimizer
PostPosted: Thu Apr 27, 2006 9:44 am 
Newbie

Joined: Thu Apr 27, 2006 9:34 am
Posts: 4
When using a external configuration file the EnableReflectionOptimizer is not set because NHibernate only check it in the app.config file (Environment class static constructor).

I guess only remove EnableReflectionOptimizer bool and change UseReflectionOptimizer method solve the problem :

Code:
public static bool UseReflectionOptimizer
        {
            get { return PropertiesHelper.GetBoolean(PropertyUseReflectionOptimizer, GlobalProperties); }
            set { GlobalProperties[PropertyUseReflectionOptimizer] = value.ToString(); }
        }



Code:
static Environment()
      {
         log.Info( "NHibernate " + Environment.Version );

         GlobalProperties = new Hashtable();
         GlobalProperties[ PropertyUseReflectionOptimizer ] = true.ToString();

         LoadGlobalPropertiesFromAppConfig();

         VerifyProperties( GlobalProperties );
      }



I have not tested it because i can't compile here but it should work :).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.