我想映射我的對象模型到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