the drawback is that you must be careful about tablenaming, fieldsnaming and, overall, specific RDBMS functions registration if you to use something special in <formula> or <where> or <orderby> and any other RDBMS related suff. Nothing more than that... with some nice persistence tests you have zero problems disabling that feature. http://fabiomaulo.blogspot.com/2009/06/auto-quote-tablecolumn-names.html
On Tue, Sep 21, 2010 at 12:30 PM, [email protected] < [email protected]> wrote: > I have had to disable it in the past as well. I haven't seen any > drawbacks yet. I believe these end up getting used in DB creation > processes via nh. > > You can disable it using: > configuration.SetProperty(Environment.Hbm2ddlKeyWords, "none") > > On Sep 21, 6:00 am, Niclas Pehrsson <[email protected]> wrote: > > Hi I need to prevent NHibernate to call the database on > > configuration.BuildSessionFactory() > > Cause I don't know the connectionstring when building the > > SessionFactory. > > > > I have locted where it calls the database when building and it is in > > the SessionFactory's constructor. > > > > if (settings.IsKeywordsImportEnabled) > > { > > > SchemaMetadataUpdater.Update(this); > > } > > if (settings.IsAutoQuoteEnabled) > > { > > > SchemaMetadataUpdater.QuoteTableAndColumns(cfg); > > } > > > > What is the drawbacks to disable IsKeywordsImportEnabled and > > IsAutoQuoteEnabled ? > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- 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.
