Generieren Sie SQL -Trigger durch EF -Migration
migrationBuilder.Sql( "DROP TRIGGER SetUserTimestamp" );
Haze
migrationBuilder.Sql( "DROP TRIGGER SetUserTimestamp" );
migrationBuilder.Sql( "CREATE TRIGGER SetUserTimestamp AFTER UPDATE ON Users BEGIN UPDATE Users SET Timestamp = randomblob( 8 ) WHERE Id = NEW.Id; END" );