Powered By:
Android Advice
 

Archive for February, 2010

NHibernate Reserved Word Does not Belong to Table Reserved Words Exception

February 23, 2010

Problem: Exception when using Nhibernate and MYSQL: Column ‘Reserved Word’ does not belong to table ReservedWords. Cause: See http://orbitalcoder.wordpress.com/2009/08/18/proposed-solution-for-the-nhibernate-exception-column-reserved-word-does-not-belong-to-table-reservedwords/  Solution: With NHibernate add the following hibernate-configuration session-factory property to the app/web.config <property name=”hbm2ddl.keywords”>none</property> With Fluent NHibernate call the following method when setting up the Fluent Configuration Fluently.Configure().ExposeConfiguration(cf => cf.Properties.Add(“hbm2ddl.keywords”, “none”))

Tags: , ,
Posted in Problem-Cause-Solution, Programming No Comments »