我想映射我的对象模型到NHibernate。在我的概念中有一个棘手的部分,我不知道是否有可能在NHibernate中做到这一点。 我想收集一些树木。我有两个类(下面,只显示了重要的属性)。 Component是树的一个节点,ComponentGroup是一个树的集合。 public class Component
{
public Component Parent { get; set
成分: - one vector map
- one masked viewing area
- one slider taking the map from 100% to 600%
- map is draggable
- map movieclip center is the top left of the movieclip
比方说,你放大,拖动地图,使右下象限是在可视面积,那
可能是一个愚蠢的问题,但我有许多实体都从基础实体继承。基本实体在数据库中没有表格。每个实体都有自己的表格,表格定义完全相同。代码的极简化示例如下。 public abstract class BaseEntity
{
public virtual string someProperty {get; set;}
}
public class Entity1 : BaseEntity