表继承(Table inheritance)是AX 2012的新特性。
AX当中的表并不等价于数据库表对象,有一部分AX表在数据库当中并没有对应的物理表,而仅仅在应用层作为独立的对象存在。这些表的所有字段都是继承自母表。
从表结构出发理解它的原理:
母表: EcoResProduct (The EcoResProduct table stores products and is the base table in the products hierarchy)
子表:EcoResDistinctProductVariant/ EcoResProductMaster/ EcoResDistinctProduct 全部继承自EcoResProduct
母表的属性InstanceRelationType是区分子表的标识列
子表的属性Extends表示继承自哪张母表
属性LegacyId是表的标识