我有视图宽度列:ID、TREE_NODE_ID、ATTRIB_ID、INT_VALUE、DATE_VALUE、STRING_VALUE、
和表:ID、PARENT_ID、TREE_ID、
public interface ITreeNode
{
long Id { get; set; }
ITreeNode Parent { get; set; }
// I want to get:
IDictionary<IAttribute, IAllTreeNodeValues> SpecTreeNodeValues { get; set; }
}
public interface IAllTreeNodeValues
{
long Id { get; set; }
ITreeNode TreeNode { get; set; }
IAttribute Attribute { get; set; }
long? IntValue { get; set; }
DateTime DateValue { get; set; }
string StringValue { get; set; }
}
fragment of mapping file:
<map name="SpecTreeNodeValues" lazy="true">
<key column="TREE_NODE_ID"/>
<index-many-to-many column="ATTRIB_ID" class="Attribute"/>
<many-to-many class="AllTreeNodeValues"/>
</map>
得到一个错误:来自表 SpecTreeNodeValues 的关联引用了一个未映射的类:GeneralData.Entity.Atribute