Created
October 25, 2022 19:43
-
-
Save tlanzer-aktion/81b76147372a47ac3126d4b99ed509c1 to your computer and use it in GitHub Desktop.
Class vs. Attribute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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