Is it possible to create a trigger with FluentMigrator, without resorting to raw SQL?
I have looked through the object model for the version currently released on Nuget (FluentMigrator.1.0.1.0) and can’t see a way of doing it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m sure you’ve figured out by now that the answer is no. And I don’t think that triggers will be supported anytime soon. They are very database-specific and would require lots of code to cover all the different cases. See this article on Wikipedia: http://en.wikipedia.org/wiki/Database_trigger
If you really want a Create.Trigger expression in FluentMigrator then pull requests are always welcome!