Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ServiceStack OrmLite, Read all records

Just trying out OrmLite for first time, and have been looking through examples/docs for like 20 min now with no luck trying to find a simple answer.

Is there a way to just return all records of a certain type? (something that returns maybe a a List or something.

I thought'd there would be a

db.SelectAll<T>();

something similar.

I'm sure there is a really easy way besides just sending the query isn't there?

SELECT * FROM [TableName]

I'm sure i've just overlooked one of the methods, or not found the correct overload yet..but if someone could give a me a shove forward, that would be wonderful.

like image 561
Kyle Gobel Avatar asked Mar 22 '23 22:03

Kyle Gobel


1 Answers

Sure, the answer is db.Select<T>();

like image 153
CallumVass Avatar answered Apr 26 '23 13:04

CallumVass