首页 > 其他分享 >ABP Value cannot be null. (Parameter 'unitOfWork')

ABP Value cannot be null. (Parameter 'unitOfWork')

时间:2022-11-01 17:24:57浏览次数:48  
标签:Value ABP cannot unitOfWork null Parameter

ABP Value cannot be null. (Parameter 'unitOfWork')

 

解决方式

将需要处理的代码放置到如下位置

private readonly IUnitOfWorkManager _unitOfWorkManager;
using (var unitOfWork = _unitOfWorkManager.Begin())
{
 //数据库数据操作代码
}

 

标签:Value,ABP,cannot,unitOfWork,null,Parameter
From: https://www.cnblogs.com/sugarwxx/p/16845196.html

相关文章