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

后端 未结 6 924
夕颜
夕颜 2021-02-15 11:52

\"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:36

    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()
    

提交回复
热议问题