SchemaUpdate not working with Views or Synonym Tables

Description

Hi!

If you have mapped a view or a synonym, the SchemaUpdate tries to create them as a table and fails because an object with the same name already exists. That should not happend.

Environment

None

Activity

Show:
Alex Zaytsev
October 16, 2017, 11:36 PM

you need to use schema-action="none" attribute on your <class> mapping/IClassMapper. if you want to map to a view rather than a table. Please see here: http://nhibernate.info/blog/2008/12/16/customizing-schema-export-with-schema-action.html

Assignee

Alex Zaytsev

Reporter

Kai Cissarek

Components

Affects versions

Priority

Major
Configure