Hi, I have an SQL string as a parameter into the grid's event bound to an aureliusdataset.
In this event, I pass the string to the Linq.sql method.
If the filter is on the simple property all is ok.
If the filter is on an entity (association), I get an error from firedac,
because the entity in the SQL string has the property's name and the value is an object reference.
e.g.
AFilterText = '(Modello = ''1721'') AND (Owner = 430294104)'.
At the database level "Owner = Owner_Id" and the value = 1.
How can I apply the right string?
Is there a way to parser the SQL string as an Aurelius query?
The "owner" is an Entity and the value is an object reference.
my code :
dsParti.Close; Cursor := AureliusManager1.Find<TParte>.Where(Linq.Sql(AFilterText)).Open; dsParti.SetSourceCursor(Cursor); dsParti.Open;
Thanks