I wanted to add 2 columnts to an MSSQL table by changing class and mapping files, using:
开发者_高级运维<property name="hbm2ddl.auto">update</property>
According to the documentation, this should result in automatically calling something like this near the session start:
SchemaUpdate su = new SchemaUpdate(_cfg);
su.Execute(true, true);
However, the columns are not there (unless I manually add these lines). What am I missing? Is it a bug in this NHibernate version or ...?
Thanks
v.
UPDATE: Certain sources mention update as a valid option, while others only offer create and create-drop. Is this the answer?
No, update option is commented out in source of this NHibernate build. It just doesn't work.
精彩评论