From 1a34ea2f288b12f0e3a4c5a30a5a41efbc9189df Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Thu, 14 Mar 2024 11:08:57 +0800 Subject: [PATCH] Update Home.razor --- MyApp/Components/Pages/Home.razor | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MyApp/Components/Pages/Home.razor b/MyApp/Components/Pages/Home.razor index ad520c5..f3a98ee 100644 --- a/MyApp/Components/Pages/Home.razor +++ b/MyApp/Components/Pages/Home.razor @@ -19,9 +19,8 @@ protected override void OnInitialized() { using var db = HostContext.AppHost.GetDbConnection(); - Posts = db.Select() + Posts = db.Select(db.From() .OrderByDescending(x => x.Score) - .Take(25) - .ToList(); + .Take(50)); } }