摘要: XPO的继承类的持久化,简单说来有2种方式:1、将继承关系映射到一张单表:using DevExpress.Xpo;public class Person : XPObject { public string Name = "";}[MapInheritance(MapInheritanceType.ParentTable)]class Customer : Person { public str... 阅读全文
posted @ 2010-02-03 15:13 Elvin Chen 阅读(675) 评论(0) 推荐(1) 编辑
摘要: 在XPO中,设如上图的个例子,当需要取出所有Customer时,我们可以简单的XPCollection<CustomerBase> xpCustomers = new XPCollection<CustomerBase>(session1);但是此时我们只能访问基类的成员。假设CustomerRegistered有一名为OwnedProducts的属性,则无法访问到了,因为... 阅读全文
posted @ 2010-02-03 14:58 Elvin Chen 阅读(499) 评论(0) 推荐(0) 编辑