NHibernate: forcing square brackets in schema export?

前端 未结 3 868
[愿得一人]
[愿得一人] 2021-01-18 03:40

Is there a way to tell NHibernate to use square brackets for all table and column names (like [MyColumn]) when generating the SQL schema export for MS SQL Serve

3条回答
  •  無奈伤痛
    2021-01-18 04:31

    Easier approach:

    SchemaMetadataUpdater.QuoteTableAndColumns(config)
    

    (Before building SessionFactory)

    That will quote all the reserved names automatically.

提交回复
热议问题