コード例 #1
0
        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);
            });
        }
コード例 #2
0
        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);
            });
        }
コード例 #3
0
ファイル: AllNodesVisitor.cs プロジェクト: yaakoviyun/sqlskim
 public override void Visit(AlterTriggerStatement node) { this.action(node); }
コード例 #4
0
 public override void ExplicitVisit(AlterTriggerStatement fragment)
 {
     _fragments.Add(fragment);
 }