Hello,
i extended CommonEntityBase with
protected override void OnGetValue(int fieldIndex, out bool cancel)
{
cancel = false;
var fieldType = Fields[fieldIndex].ActualDotNetType;
if (fieldType == typeof(DateTime) || fieldType == typeof(DateTime?))
{
if (Fields[fieldIndex].CurrentValue != null)
{
DateTime? date = (DateTime)Fields[fieldIndex].CurrentValue;
Fields[fieldIndex].CurrentValue = date.UtcToLocal();
}
}
base.OnGetValue(fieldIndex, out cancel);
}
and it works with single entity.
i'm using llblgen 3.1
but how to override certain type field value when i create query using linq meta data code what is generated by llblgen?
thanks a lot guys for any help. llblgen is doing phenomenal job here.