I need to access two databases in my XDATA server depending on the table name i am selecting the data from. So i know if the table names is A i go to database1 , if B - to database2.
I thought i can switch the connection pool between 2 aurelius connections in the TSDATASERVER event ONENTITYLIST but in the code for that event i cannot get the information about the entity name in the request. The 'Args' object doesn't give me anything.
procedure TServerContainer.XDataServerEntityList(Sender: TObject;
You can know which is the entity being access by inspecting
Args.Criteria.Clazz value. This will provide you with the entity class being queried.
I was trying that but could not get any property except strange list of templates. Am I missing some units in uses?
Sorry, but I don't understand what you mean?
I apologies for my confusing explanation. I just don't see any properties of the Args object.
The image is attached. I am probably missing some units in uses(?)
Are you using Delphi 10.4 Sydney? This must be simply a code completion issue. Type the correct code and see if it compiles, it should.
I am using Delphi 10 Seattle.
I will try to compile. Thank you.