You are not logged in.
Pages: 1
I need help with ORM, do not know filtering with property of set type.
See a Sample:
TMySet = (msOne, msTwo);
TMySets = set of TMySet;
TSample = class(TSQLRecord)
private
FMySets = TMySets;
published
property MySets = TMySets read FMySets write FMySets;
end;
...
var
Sample: TSample;
begin
Sample := TSample.CreateAnFillPrepare(SQLrest, 'MySets = ?, [Byte(msOne)]';
See records in table:
id | MySets
----------------
1|1 // msOne
2|2 // msTwo
3|3 // msOne and msTwo
I need to return two records when where clause is msOne or msTwo (bits 1 and 3 or 2 and 3).
In my sample return only one record, but not corresponding with where.
What do I need to return two records?
Offline
That's it
Thanks AB.
Offline
Pages: 1