Hi, I'm new in Aurelius.
Please can anyone explain me how can I do this with Aurelius
"SELECT COUNT(*) FROM myTable"
Many thanks.
Hi, I'm new in Aurelius.
Have you checked projections?
Sorry, but I'm new in this forum.
You can use projections like this:
Value := Manager.CreateCriteria<TmyTable>
.SetProjections(TProjections.Sum('idfield'))
.UniqueValue;
where TmyTable would be the entity type mapped to myTable and 'idfield' would be the id field of the object. You can find more information in the help, under queries\projections
Sorry, replace SUM with COUNT in previous example