C# ServiceStack OrmLite, how to read all records with references

71 Views Asked by At

var entities = await db.LoadSelectAsync(_ => true); Is there a way to do this without sending a param? something like a LoadSelectAll()? thanks in advance.

1

There are 1 best solutions below

0
mythz On

You can select from an empty SqlExpression<T> without any filter conditions, e.g:

var entities = await db.LoadSelectAsync(db.From<Table>());