Aurelius Entity MemoText String-Represantation

Hi,
i've another question:

Definition of a property in my Entity :
[Column('payment_link', [])]

  • [DBTypeMemo]*
    Fpayment_link: TBlob;

In the database (MySql) i've the content "http://www.google.de"

After the load of the Entity from Database:

AItemList := TXDataOperationContext.Current.GetManager

  • .Find*

  • .Where(Linq['item_indent'] = Ident).List ;*

  • if AItemList.Count = 1 then*

  • begin*

  •  Result := AItemList[0];*
    
  •  var ALinkStr : String :=  Result.payment_link.AsString;*
    
  • end*

  • else*

  • begin*

  • Result := nil;*

  • end;*

i get in the var ALinkStr the Value "'h'#0't'#0't'#0'p'#0':'#0'/'#0'/'#0'w'#0'w'#0'w'#0'.'#0'g'#0'o'#0'o'#0'g'#0'l'#0'e'#0'.'#0'd'#0'e'#0"

How i've to convert the Value of the Property payment_link to a readable string?
Thank you for Your support
Greetings Andy

Even thought your message was very confusing due to wrong formatting, I guess that you can solve your issue by using payment_link.AsUnicodeString as stated here in documentation: Mapping | TMS Aurelius documentation

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.