When I execute an update on my SQL Server database, I get a result of the rows affected by the update AND the affected rows of some triggers.
So for example, an update executed directly on database:
UPDATE: (32 row(s) affected)
Trigger1: (1 row(s) affected)
Trigger2: (2 row(s) affected)
...
Now when I execute _context.Database.ExecuteSqlCommand(query, params)
I always get the sum of all those results, in my example the result value is 35
.
I only need the result of the UPDATE
, in my example 32
.
Is there any possibility to ignore the results of the triggers?