Exemple #1
0
 protected abstract void Generate(RemoveFKConstraint op);
Exemple #2
0
        protected override void Generate(RemoveFKConstraint op)
        {
            using (var sql = this.Writer())
            {
                sql.Write(@"
            ALTER TABLE ");
                sql.Write(this.Quote(op.DependentTable));
                sql.Write(@"
            DROP CONSTRAINT ");
                sql.Write(this.Quote(op.ConstraintName));

                this.AddRun(sql);
            }
        }
Exemple #3
0
        protected override void Generate(RemoveFKConstraint op)
        {
            var oldName = op.ConstraintName;

            PrepareFKConstraintName(op);
            base.Generate(op);

            op.ConstraintName = oldName;
        }