From 4c7a342cf3f04d97e691a391453da0d1daaeeb5d Mon Sep 17 00:00:00 2001 From: luolangaga <2667210109@qq.com> Date: Sat, 17 Aug 2024 23:08:15 +0800 Subject: [PATCH] xiufu --- asg_form/Controllers/Store/Storehttp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asg_form/Controllers/Store/Storehttp.cs b/asg_form/Controllers/Store/Storehttp.cs index 30d6729..2d4c7ca 100644 --- a/asg_form/Controllers/Store/Storehttp.cs +++ b/asg_form/Controllers/Store/Storehttp.cs @@ -126,7 +126,7 @@ namespace asg_form.Controllers.Store using (TestDbContext sb = new TestDbContext()) { - var a = await sb.T_Storeinfo.Where(a=>a.buyerid==id).ToListAsync(); + var a = await sb.T_Storeinfo.Include(a => a.Store).Select(a => new {a.id,a.buyerid,a.isVerification,a.Store.Name,a.Store.information,a.Store.description}).Where(a=>a.buyerid==id).ToListAsync(); return Ok(a); } }