Skip to content

.Net8版本,某些场景无法插入和更新,错误信息:如果 DML 语句包含不带 INTO 子句的 OUTPUT 子句,则该语句的目标表 'sal_order1' 不能具有任何启用的触发器 #148

@fanxinshun

Description

@fanxinshun

导致该错误的官方说明及解决方法都有说明文档:https://learn.microsoft.com/zh-cn/ef/core/what-is-new/ef-core-7.0/breaking-changes?tabs=v7#sqlserver-tables-with-triggers
在我的sql server数据库中,每张表都有触发器,InsertAsync和UpdateAsync方法能否支持不返回int,并且在生成的sql中去除OUTPUT
或者有其它什么解决方案

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions