I have an EF6 solution that I would like to add a trigger on a table to log changes to a new table. This is due to an integration we are doing to an external database. Basically, they want a log of changes that are made to a table for sync purposes.
The triggers work perfectly when I execute through SSMS (Azure SQL DB), but when I test via our web app I get the following error:
(0x80131904): The target table 'DestinationTable' of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause.
Basically, it looks like I can't assign a trigger to a table that uses Entity Framework.
Anyone have ideas for how to make this work?
Thanks in advance
question from:
https://stackoverflow.com/questions/65890162/entity-framework-6-sql-server-triggers-getting-error 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…