Development With A Dot

Blog on development in general, and specifically on .NET

Sponsors

News

My Friends

My Links

Permanent Posts

Portuguese Communities

NHibernate Pitfalls: Table Schema

This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.

NHibernate has a schema attribute on HBM XML mappings and a Schema() method on fluent configuration that allows you to specify the schema for your objects. Therefore, you should not specify your table names like “SchemaName.TableName”, because this will prevent NHibernate from properly generating the database for you, if you so wish (either through SchemaExport or the schema auto action feature). Instead, specify the schema and table names on the appropriate places.

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)