Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.01 KB

PX1031.md

File metadata and controls

31 lines (23 loc) · 1.01 KB

PX1031

This document describes the PX1031 diagnostic.

Summary

Code Short Description Type Code Fix
PX1031 DACs cannot contain instance methods. Error Unavailable

Diagnostic Description

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.

Example of Incorrect Code

[Serializable]
public class POALCLandedCost : PXBqlTable, IBqlTable
{
    #region Methods
    protected virtual void SetStatus() // The PX1031 error is displayed for this line.
    {
    }
    #endregion
}

Related Articles

Data Access Classes