Matan_Ati
Matan_Ati

Reputation: 31

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

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

Upvotes: 1

Views: 94

Answers (1)

mythz
mythz

Reputation: 143319

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

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

Upvotes: 1

Related Questions