Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.34 KB

PX1009.md

File metadata and controls

39 lines (25 loc) · 1.34 KB

PX1009

This document describes the PX1009 diagnostic.

Summary

Code Short Description Type Code Fix
PX1009 Multiple levels of inheritance are not supported for PXCacheExtension. Error Available

Diagnostic Description

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.

Example of Incorrect Code

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. 

Example of Code Fix

public class ARInvoice : PXBqlTable, IBqlTable 
{ }

public class ARInvoiceRUTROT : PXCacheExtension<ARInvoice> { }
   
public class ARInvoiceRUTROTExt : PXCacheExtension<ARInvoiceRUTROT, ARInvoice> { }

Related Articles

DAC Extensions