This document describes the PX1009 diagnostic.
Code | Short Description | Type | Code Fix |
---|---|---|---|
PX1009 | Multiple levels of inheritance are not supported for PXCacheExtension . |
Error | Available |
C#-style inheritance from PXCacheExtension
is not supported. You should instead use overloads of the PXCacheExtension
class to define derived classes.
The code fix changes the base type of the class that you want to derive from PXCacheExtension
to a PXCacheExtension
overload.
public class ARInvoice : PXBqlTable, IBqlTable
{ }
public class ARInvoiceRUTROT : PXCacheExtension<ARInvoice> { } // This line works as expected.
public class ARInvoiceRUTROTExt : ARInvoiceRUTROT { } // The PX1009 error is displayed for this line.
public class ARInvoice : PXBqlTable, IBqlTable
{ }
public class ARInvoiceRUTROT : PXCacheExtension<ARInvoice> { }
public class ARInvoiceRUTROTExt : PXCacheExtension<ARInvoiceRUTROT, ARInvoice> { }