Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

generate sql trigger through ef migration

migrationBuilder.Sql( "CREATE TRIGGER SetUserTimestamp AFTER UPDATE ON Users BEGIN UPDATE Users SET Timestamp = randomblob( 8 ) WHERE Id = NEW.Id; END" );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #sql #trigger #ef #migration
ADD COMMENT
Topic
Name
6+1 =