与流利NHibernate的父母子女关系?
我想为给定的父级创建N个子级的级联树/列表,其中子级也可以成为父级。
鉴于以下数据结构:
CountryType = 1;的ColorType = 3; StateType = 5
6,7,8 = {Can,US,Mex}
10,11,12 = {红色,白色,蓝色}
20,21,22 = {加州,佛罗里达,艾伯塔省}
TreeID ListTypeID ParentTreeID ListItemID
1 1 Null 6 (Canada is a Country)
2 1 Null 7 (US is a Country)
3 1 Null 8 (Mexico is a Country)
4 3 3 10 (Mexico has Red)
5 3 3 11 (Mexico has White)
6 5 1 22 (Alberta is in Canada)
7 5 7 20 (California is in US)
8 5 7 21 (Florida is in US)
9 3 6 10 (Alberta is Red)
10 3 6 12 (Alberta is Blue)
11 3 2 10 (US is Red)
12 3 2 11 (Us is Blue)
如何在Fluent NHibernate类中表示?
一些方向将不胜感激。
谢谢。
没有找到相关结果
已邀请:
2 个回复
温拎凯玛
穗揣