Is there a auto quoting option for Entity Developer to add quote sign to table and column names?
Posted: Mon 04 Jul 2016 01:29
Hi,
We're using Postgres sql as one of the supported database. But our existing DB's table and column names are UPPER cased.
When using NHibernate's hbm.xml generated by Entity Devloper, we retrieved error like:
Npgsql.PostgresException : 42P01: relation "users" does not exist
We would like to keep the table and column names UPPER cased, and DB is case sensitive. And we want to use xml for mapping instead of fluent NHiberate.
So although there is a possible solution. https://jporwol.wordpress.com/2012/07/2 ... e-columns/
We don't want to adapt that. And if we manually add quotes to table and column names in Entity Developer, they will be flushed every time we change the DB design and updated entity from DB to Model with Entity Developer.
Any suggestions?
We're using Postgres sql as one of the supported database. But our existing DB's table and column names are UPPER cased.
When using NHibernate's hbm.xml generated by Entity Devloper, we retrieved error like:
Npgsql.PostgresException : 42P01: relation "users" does not exist
We would like to keep the table and column names UPPER cased, and DB is case sensitive. And we want to use xml for mapping instead of fluent NHiberate.
So although there is a possible solution. https://jporwol.wordpress.com/2012/07/2 ... e-columns/
We don't want to adapt that. And if we manually add quotes to table and column names in Entity Developer, they will be flushed every time we change the DB design and updated entity from DB to Model with Entity Developer.
Any suggestions?