public void AlterTrigger_RenameTo() { var statement = new AlterTriggerStatement(ObjectName.Parse("trig1"), new RenameTriggerAction(new ObjectName("t1"))); SerializeAndAssert(statement, (serialized, deserialized) => { Assert.IsNotNull(deserialized); Assert.IsNotNull(deserialized.TriggerName); Assert.AreEqual("trig1", deserialized.TriggerName.FullName); Assert.IsInstanceOf <RenameTriggerAction>(deserialized.Action); }); }
public void AlterTrigger_ChangeStatus() { var statement = new AlterTriggerStatement(ObjectName.Parse("APP.trig1"), new ChangeTriggerStatusAction(TriggerStatus.Disabled)); SerializeAndAssert(statement, (serialized, deserialized) => { Assert.IsNotNull(deserialized); Assert.IsNotNull(deserialized.TriggerName); Assert.AreEqual("APP.trig1", deserialized.TriggerName.FullName); Assert.IsInstanceOf <ChangeTriggerStatusAction>(deserialized.Action); }); }
public override void Visit(AlterTriggerStatement node) { this.action(node); }
public override void ExplicitVisit(AlterTriggerStatement fragment) { _fragments.Add(fragment); }