当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Cannot await system collections generic ienumerable

问题描述:

This question already has an answer here:

  • Is there a way I can run a Database.SqlQuery as async?

    1 answer

网友答案:

You have to use the Async version of the methods.

try:

var AcctLst = await rep.ExecuteStoredProcedure<Entities.Case.SaveCaseSearchOutput>(strSPQuery, listParam).ToListAsync();
分享给朋友:
您可能感兴趣的文章:
随机阅读: