Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.05 KB

PX1024.md

File metadata and controls

49 lines (37 loc) · 1.05 KB

PX1024

This document describes the PX1024 diagnostic.

Summary

Code Short Description Type Code Fix
PX1024 The DAC class field must be abstract. Error Available

Diagnostic Description

The class fields of DACs must be public abstract classes.

The code fix adds the abstract modifier to the DAC class field.

Example of Incorrect Code

public class APInvoice : PXBqlTable, IBqlTable
{
	#region BranchID
	public class branchID : IBqlField // The PX1024 error is displayed for this line.
	{
	}

    [PXDBInt]
	public virtual int? BranchID { get; set; }
	#endregion
}

Example of Code Fix

public class APInvoice : PXBqlTable, IBqlTable
{
	#region BranchID
	public abstract class branchID : IBqlField
	{
	}

    [PXDBInt]
	public virtual int? BranchID { get; set; }
	#endregion
}

Related Articles

Data Access Classes