xiufu
This commit is contained in:
parent
b5a2a1ca08
commit
4c7a342cf3
@ -126,7 +126,7 @@ namespace asg_form.Controllers.Store
|
|||||||
|
|
||||||
using (TestDbContext sb = new TestDbContext())
|
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);
|
return Ok(a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user