悟小小空

EF CORE异步方式读取与返回数据

电脑版发表于:2020/12/17 10:05

我们这里可以使用异步的方式来读取与返回数据

public async Task<IActionResult> Index()
 {
     return View(await _context.Students.ToListAsync());
}


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢