When I run the following code in my XData server
LJobsList := Manager.Find<TJob>.Where(TLinq.eq('Status', TJobStatus.New) or TLinq.eq('Status', TJobStatus.Queued)
or TLinq.eq('Status', TJobStatus.Processing)).List;
I get an exception
Property "Status" not found on class "TJob"
The entity TJob.Status is defined as
TJob = class
private
[Column('JOBSTATUS')]
FJobStatus: TJobStatus;
public
property Status: TJobStatus read FJobStatus write FJobStatus;
end;
However, if I define the property like this:
TJob = class
private
[Column('JOBSTATUS')]
FStatus: TJobStatus;
public
property Status: TJobStatus read FStatus write FStatus;
end;
then the selection works. So it is not the property it is looking for but the field. Is that correct?