Should the synchronous operation that build the query to DB be wrapped into Task.FromResult()

后端 未结 0 1225
庸人自扰
庸人自扰 2021-01-12 07:31

I have a code and I\'m feeling (but not quite sure) there is a code smell in it:

This method calls repository method GetAllByOrderIdAsync:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题