Upcasting(向上转型 )
When using persistent class hierarchies, you often have to combine base and derived classes in a single query. However, this is challenging since the derived classes obviously have an extended set of properties. The article below shows how to reference these properties using the Upcasting feature.
当使用持久类层次结构时,您经常需要在单个查询中组合基类和派生类。但是,这具有挑战性,因为派生类显然具有一组扩展的属性。下面的文章展示了如何使用Upcast功能引用这些属性。
Suppose we have the following persistent class hierarchy. The CustomerBase class is the base class that implements properties that are common to all customers. The CustomerRegistered and CustomerTrialed classes extend the base functionality by implementing customer specific properties. T