MySQL & NHibernate. How fix the error: Column 'ReservedWord' does not belong to table ReservedWords?

后端 未结 6 2279
难免孤独
难免孤独 2021-02-15 11:50

\"I am getting a weird error when using NHibernate. And I don\'t know what is causing this error. I am new to the whole Visual Studio and NHibernate, but not to Hibernate. I use

6条回答
  •  甜味超标
    2021-02-15 12:17

    FYI for any NHibernate/Fluent NHibernate newbies like myself, FCastellanos' solution worked for me as well (I got the error on Windows as well), and the Fluent NHibernate way to add that configuration is:

    Fluently.Configure()
        ...
        .ExposeConfiguration(c => c.Properties.Add("hbm2ddl.keywords", "none"))
        ...
        .BuildSessionFactory()
    

提交回复
热议问题