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
OUTPUTwithout anINTOclause, not "You cannot use triggers in Entity Framework". The error is telling you the problem here; if you have anOUTPUTit need to have anINTOas well.