fix 无主键定义实体删除
This commit is contained in:
@@ -111,7 +111,12 @@ public class RoleService : IRoleService
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
await _dbContext.DeleteReallyAsync(userRole);
|
if (userRole != null)
|
||||||
|
{
|
||||||
|
await _dbContext.Deleteable<UserRoleEntity>()
|
||||||
|
.Where(x => x.UserId == request.UserId)
|
||||||
|
.ExecuteCommandAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user