Using XData/Aurelius v5.0 or previus version, Delphi 10.4.2 PRO or 10.4.1, IBEXpress adapter
When applying PUT or PATCH (automatic CRUD endpoints) XData returns the previus object state instead of the updated object (as stated in docs)
Regards,
Using XData/Aurelius v5.0 or previus version, Delphi 10.4.2 PRO or 10.4.1, IBEXpress adapter
When applying PUT or PATCH (automatic CRUD endpoints) XData returns the previus object state instead of the updated object (as stated in docs)
Regards,
Can you please check if it also happens without IBEXpress (FireDac or dbExpress, for example)? Do you have a sample to reproduce the issue?
Hi Wagner, thanks for your feedback.
The problem DO NOT happen if using FireDAC or ZeosLib adapters (same project/everything)
It's related only to the IBExpresss adapter. To reproduce it you must have a Firebird server and follow:
unit Unit3;
interface
uses
Aurelius.Mapping.Attributes;
type
[Entity]
[Automapping]
[Id('FName', TIdGenerator.None)]
TCountry = class
private
[COLUMN('COUNTRY')]
FName: string;
FCurrency: string;
public
property Name: string read FName write FName;
property Currency: string read FCurrency write FCurrency;
end;
implementation
initialization
RegisterEntity(TCountry);
end.
Run and and test the endpoints (I used Imsomnia)
Regards,
I'm sorry, but how are you using TIBDatabase
to access a Firebird database? From here is simply does not connect, it says connection is rejected by remote interface.
IBExpress is not officially supported by Aurelius to connect to Firebird, only Interbase, see here:
Hi Wagner.
IBExpress works smoothly with Firebird, no problem at all (at least on my C/S projects so far). But, since it's not oficially supported by Aurelius, I'll move on. ZeosLib works fine and I've been using it with XData. This is the fisrt time tried with IBExpress for testing (did not noticed was not supported, sorry).
Thanks again.
Regards,
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.