tags:

views:

158

answers:

2

As the title: How would I tell NHibernate, once and for all, that all table and column names are to be quoted in the SQL it generates?

+1  A: 

I've not tried this, but as far as i can determine based on the documentation a custom implementation of the naming strategy allows you to rewrite the table/column names thus also enables you to quote them.

Jasper
A: 

You need to add

<property name="hbm2ddl.keywords">auto-quote</property>

to your NHibernate configuration.

pvasek