MoD
unread,Feb 6, 2012, 1:23:58 PM2/6/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fluent NHibernate
Hi,
Is there a way to do a bi-directional any mapping?
ReferencesAny(c => c.SharedEntity)
.EntityTypeColumn("ParentType")
.EntityIdentifierColumn("ParentId")
.IdentityType<int>()
.MetaType<string>();
SharedEntity is a class (ie Contact, Company)
Normally, if i used References(), i should add HasMany(x=>
x.SharedEntity) to Contact/Company classes.
What shall i add to Contact/Company to get SharedEntities?