générer un déclencheur SQL grâce à la migration EF
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" );