Skip to content

Instantly share code, notes, and snippets.

@tlanzer-aktion
Created October 25, 2022 19:43
Show Gist options
  • Save tlanzer-aktion/81b76147372a47ac3126d4b99ed509c1 to your computer and use it in GitHub Desktop.
Save tlanzer-aktion/81b76147372a47ac3126d4b99ed509c1 to your computer and use it in GitHub Desktop.
Class vs. Attribute
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PX.Objects;
using PX.Data;
using PX.Data.BQL;
namespace Aktion.Common.Acumatica.NoCodeChanges
{
public class BarCodeIDAttribute : Attribute
{ }
public abstract class BaseGuid : IBqlGuid
{
public BaseGuid() { }
BaseGuid(Guid guid)
{
_Guid = guid;
}
private Guid _Guid;
public Guid Guid
{
get { return _Guid; }
set { _Guid = value; }
}
}
[BarCodeID]
public class BarcodeIDField : BaseGuid
{
}
public class BaseDAC : IBqlTable { }
public class MyDAC : BaseDAC
{
public abstract class barcodeID : BaseGuid
{
}
public virtual BarcodeIDField BarcodeID { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment