Triggers Error Entity Framework Core 7 (.NET 7)

preview_player
Показать описание
So if you get this triggers error dont worry I will show you how you fix it.

SqlException: The target table 'dbo.Employee' of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause.

---------------------------------------------------------------------------------------------

🎮 My Top Gaming Gear 🎮

💻 My Top Software 💻
Рекомендации по теме
Комментарии
Автор

Of all the Microsoft updates out there, this is the most Microsoft. Thanks for the explanation.

nourdra
Автор

Support by hitting 2 buttons! Like and Subscribe 👏

zetbit
Автор

Thanks for the Video. Your video saved me. Appreciate your work, keep rocking!!

nambir
Автор

I am still unable to get EF Core to insert into a table with trigger despite this solution. A new error is being thrown up:

An exception occurred in the database while saving changes for context type 'Context_name'. An error occurred while saving the entity changes. See the inner exception for details.
System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Int64'."

The only column that is int64 is the id column which is automatically generated and is not being inserted into.

boluwadekujero
Автор

OMG - so Microsoft are basically saying that EF does not work with triggers anymore. I'm currently getting an EF Core 6 error where running an insert trigger that does no update, throws a list index out of bounds error on context.SaveChanges.

PaulMcCarthyYT
Автор

Wow, it worked! Thank you very much! :)

quantume
Автор

Bro I was getting same error but in .net core 6, we migrate from 3.1 to 6 and after some time I noticed that triggers are giving this error

racksonn
Автор

Trigeer Name Generated Random
How Can i Write TriggerName In Modelbuilder

shabanelmogy