This document describes the PX1031 diagnostic.
Code | Short Description | Type | Code Fix |
---|---|---|---|
PX1031 | DACs cannot contain instance methods. | Error | Unavailable |
DACs and DAC extensions cannot contain instance methods. DACs and DAC extensions are the classes that are used to read and write data. Therefore, for appropriate program architecture and design, such classes cannot contain any application logic.
To fix the issue, you should remove instance methods from the DAC or the DAC extension.
[Serializable]
public class POALCLandedCost : PXBqlTable, IBqlTable
{
#region Methods
protected virtual void SetStatus() // The PX1031 error is displayed for this line.
{
}
#endregion
}