I have an object which is self referencing as you go up the tree.  The
FormulaIs option doesn't feel right though.  Is this the best way to
self-reference a parent node?

public class ItemMap : ClassMap<ItemMap>
{
    public ItemMap()
    {
    WithTable("ITEMS");
    Id(x => x.Id).ColumnName("Id");
    Map(x => x.Name).ColumnName("Name");
    Map(x => x.ParentId).ColumnName("ParentId");
    Map(x => x.ParentName).ForumulaIs("(SELECT Name FROM ITEMS WHERE
Id = ParentId");
    }
}

Thanks,
Colin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to