I have a fluent mapping case and according to documentation the only
was i found is to use ReferencesAny().
But again according to documentation i need to use referencesany in
special cases.

Is there a way to achieve this without using referencesany() ?
(I trimmed down fields to make myself clear)

public BaseEntity()
{
  public Id { get;set;}
  ...
}

public Folder() : BaseEntity....
public Contact() : BaseEntity ..
public Account() : BaseEntity ...

public SharingRecord()
{
 public Id { get;set;}
 public BaseEntity SharedEntity { get;set;}
 public ShareLevel Level { get;set;}
 public User User { get;set;}
 ...
}

Folder, Contact and Account are different tables. SharingRecord's
parent can be any of them.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to