I use Entity Framework Migrations for code first to control my database model. It works charming and I can handle until now everything. But now I need to add one database trigger and I would like to do this with EF Migrations and not use a separate sql script for only this case (This would be confusing for clients, esp. after we convinced them that we can handle everything with EF Migrations).
My trigger is straight forward and looks like tis:
CREATE OR REPLACE TRIGGER [name] BEFORE UPDATE ON myTable ...
Is there a command to add a trigger to EF Migrations?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…