I am using NHibernate 3.0 and Postgres 9.0.4. When I try new SchemaUpdate(cfg).Execute(scriptAction, true); , Nothing happens. There are no exceptions, SQL is not thrown (even if the provided Action<string> scriptAction not called), and tables are not created. If I use SchemaExport, everything will work like a charm. Therefore, I assume that my configurations and mappings are correct. I read about problems with a combination of NHibernate 2.something.something and Postgres 8.something using SchemaUpdate. Can someone confirm that SchemaUpdate is still unsuitable for new versions of Postgres and NHibernate, or even better, can someone help me solve my problem?
Thanks in advance.
EDIT:
There are actually exceptions, as I recently found out. SchemaUpdate does not throw them, but stores them in the Exception property. I get two System.NotSupportedException in NHibernate.Dialect.Dialect.GetDataBaseSchema(DbConnection connection) without additional data, which suggests that SchemaUpdate cannot be used with PostgreSQL, but if that is the case, then someone should already figure it out. I tried both .PostgreSQLDialect and .PostgreSQL82Dialect no avail.
source share