<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.0-preview2.25289.6" />

Microsoft.Data.SqlClient.Server.TriggerAction

public enum TriggerAction
The TriggerAction enumeration is used by the SqlTriggerContext class to indicate what action fired the trigger.

An ALTER APPLICATION ROLE Transact-SQL statement was executed.

An ALTER ASSEMBLY Transact-SQL statement was executed.

An ALTER_REMOTE_SERVICE_BINDING event type was specified when an event notification was created on the database or server instance.

An ALTER FUNCTION Transact-SQL statement was executed.

An ALTER INDEX Transact-SQL statement was executed.

AlterLogin = 145

An ALTER LOGIN Transact-SQL statement was executed.

An ALTER PARTITION FUNCTION Transact-SQL statement was executed.

An ALTER PARTITION SCHEME Transact-SQL statement was executed.

An ALTER PROCEDURE Transact-SQL statement was executed.

AlterQueue = 158

An ALTER QUEUE Transact-SQL statement was executed.

AlterRole = 135

An ALTER ROLE Transact-SQL statement was executed.

AlterRoute = 165

An ALTER ROUTE Transact-SQL statement was executed.

An ALTER SCHEMA Transact-SQL statement was executed.

An ALTER SERVICE Transact-SQL statement was executed.

An ALTER TABLE Transact-SQL statement was executed.

An ALTER TRIGGER Transact-SQL statement was executed.

AlterUser = 132

An ALTER USER Transact-SQL statement was executed.

AlterView = 42

An ALTER VIEW Transact-SQL statement was executed.

A CREATE APPLICATION ROLE Transact-SQL statement was executed.

A CREATE ASSEMBLY Transact-SQL statement was executed.

A CREATE_REMOTE_SERVICE_BINDING event type was specified when an event notification was created on the database or server instance.

A CREATE CONTRACT Transact-SQL statement was executed.

A CREATE EVENT NOTIFICATION Transact-SQL statement was executed.

A CREATE FUNCTION Transact-SQL statement was executed.

A CREATE INDEX Transact-SQL statement was executed.

A CREATE LOGIN Transact-SQL statement was executed.

A CREATE MESSAGE TYPE Transact-SQL statement was executed.

A CREATE PARTITION FUNCTION Transact-SQL statement was executed.

A CREATE PARTITION SCHEME Transact-SQL statement was executed.

A CREATE PROCEDURE Transact-SQL statement was executed.

A CREATE QUEUE Transact-SQL statement was executed.

CreateRole = 134

A CREATE ROLE Transact-SQL statement was executed.

A CREATE ROUTE Transact-SQL statement was executed.

A CREATE SCHEMA Transact-SQL statement was executed.

Not available.

A CREATE SERVICE Transact-SQL statement was executed.

A CREATE SYNONYM Transact-SQL statement was executed.

A CREATE TABLE Transact-SQL statement was executed.

A CREATE TRIGGER Transact-SQL statement was executed.

A CREATE TYPE Transact-SQL statement was executed.

CreateUser = 131

A CREATE USER Transact-SQL statement was executed.

A CREATE VIEW Transact-SQL statement was executed.

Delete = 3

A DELETE Transact-SQL statement was executed.

DenyObject = 171

A DENY Object Permissions Transact-SQL statement was executed.

A DENY Transact-SQL statement was executed.

A DROP APPLICATION ROLE Transact-SQL statement was executed.

A DROP ASSEMBLY Transact-SQL statement was executed.

A DROP_REMOTE_SERVICE_BINDING event type was specified when an event notification was created on the database or server instance.

A DROP CONTRACT Transact-SQL statement was executed.

A DROP EVENT NOTIFICATION Transact-SQL statement was executed.

A DROP FUNCTION Transact-SQL statement was executed.

DropIndex = 26

A DROP INDEX Transact-SQL statement was executed.

DropLogin = 146

A DROP LOGIN Transact-SQL statement was executed.

A DROP MESSAGE TYPE Transact-SQL statement was executed.

A DROP PARTITION FUNCTION Transact-SQL statement was executed.

A DROP PARTITION SCHEME Transact-SQL statement was executed.

A DROP PROCEDURE Transact-SQL statement was executed.

DropQueue = 159

A DROP QUEUE Transact-SQL statement was executed.

DropRole = 136

A DROP ROLE Transact-SQL statement was executed.

DropRoute = 166

A DROP ROUTE Transact-SQL statement was executed.

DropSchema = 143

A DROP SCHEMA Transact-SQL statement was executed.

Not available.

A DROP SERVICE Transact-SQL statement was executed.

A DROP SYNONYM Transact-SQL statement was executed.

DropTable = 23

A DROP TABLE Transact-SQL statement was executed.

A DROP TRIGGER Transact-SQL statement was executed.

DropType = 93

A DROP TYPE Transact-SQL statement was executed.

DropUser = 133

A DROP USER Transact-SQL statement was executed.

DropView = 43

A DROP VIEW Transact-SQL statement was executed.

A GRANT OBJECT Transact-SQL statement was executed.

A GRANT Transact-SQL statement was executed.

Insert = 1

An INSERT Transact-SQL statement was executed.

Invalid = 0

An invalid trigger action, one that is not exposed to the user, occurred.

A REVOKE OBJECT Transact-SQL statement was executed.

A REVOKE Transact-SQL statement was executed.

Update = 2

An UPDATE Transact-SQL statement was executed.