Interface -> Entity Mapping
- by KiD0M4N
Hi guys,
Suppose I have a few definitions like so:
public interface ICategory
{
int ID { get; set; }
string Name { get; set; }
ICategory Parent { get; set; }
}
public class Category : ICategory
{
public virtual int ID { get; set; }
public virtual string Name { get; set; }
public virtual ICategory Parent { get; set; }
}
How do I map such a scenario in NHibernate? I am trying to separate the implementation of the DAL.
I am learning NHibernate.
Regards,
Karan