I am currently overriding my entity's OnSave event as follows:
protected override void OnSave()
try
{
IEntityField field = this.Fields[(int)CreditCardFieldIndex.Pan];
field.SetExpression(new DbFunctionCall("ENCRYPTBYCERT", new object[] { "XXX", field.CurrentValue }));
}
catch (Exception e)
{
EventLogger.LogError(e,"CreditCardEntity OnSave failed");
}
base.OnSave();
}
XXX represents the valid certificate id,
With no success, the generated SQL does not include the EncryptByCert function
We're using the LLBLGEN 2.6 runtimes, self-servicing.
Thank you