Select all children and order by last name

This commit is contained in:
kougyokugentou 2021-01-20 16:11:09 -08:00
parent 15f30ce8f8
commit 972898ccfa

View File

@ -29,7 +29,7 @@ namespace GreatHomeChildcare
{ {
using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString())) using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString()))
{ {
string strQuery = "SELECT * FROM Children"; string strQuery = "SELECT * FROM Children ORDER BY LastName ASC";
var output = cnn.Query<Child>(strQuery); var output = cnn.Query<Child>(strQuery);
return output.ToList(); return output.ToList();
} }