How to use column name in DB that differs from field name in DAC class

Hello everybody,

today I want to leave a short workaround for the following case:

you have DAC class, with column Data, but in db you have column BlobData. How to map your BlobData on Data? For such case you can use attribute DatabaseFieldName.

Take a note, how Acumatica used it:

[PXDBBinary(DatabaseFieldName = "Data")]
public virtual byte[] BlobData { getset; }

No Comments

Add a Comment