Fluent Nhibernate - Mapping two entities to same table

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2010-06-15T20:46:07Z Indexed on 2010/06/15 20:52 UTC
Read the original article Hit count: 680

Hi,

I'm trying to map two domain entities to the same table. We're doing a smart entity for our domain model, so we have the concept of an Editable Address and a readonly Address. I have both mapped using Classmaps, and everything seems to go fine until we try to export the schema using the SchemaExport class from NHibernate. It errors out saying the table already exists.

I assume it's something simple that I'm just not seeing.

Any ideas?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about nhibernate