ABP无法使用异步操作,但要调用异步方法

使用

AsyncHelper.RunSync(() => _studentRepository.FirstOrDefaultAsync(x => x.Code == studentCode));

posted @ 2021-08-18 11:32  悟自省  阅读(164)  评论(0)    收藏  举报