仓储中 级联 插入 报错,麻烦看下我哪里操作错误 返回

SqlSugar 处理完成
2 354
该叫什么   发布于2026/3/10
悬赏:0 飞吻

3986a9ac80256e007fd2885e9b2b8616.png

a38cc255964ef08f402b589b8c8b4f2a.png

构造函数里        BaseDb = context.AsTenant().GetConnection(0);  

注入     services.AddScoped(typeof(IDigitalPlantTenantTwoRepository<>), typeof(DigitalPlantTenantTwoRepository<>));


这里 使用 级联 会报需错

image.png

这是 我那里操作错误 导致报错吗, 

热忱回答2