Inheritance: SqlStatement, IPreparableStatement
        public void DropViewIfExists_NotExisting()
        {
            var viewName = ObjectName.Parse("APP.test_view2");
            var statement = new DropViewStatement(viewName, true);

            statement.Execute(Query);

            var exists = Query.ViewExists(viewName);
            Assert.IsFalse(exists);
        }
        public void DropViewIfExists_NotExisting()
        {
            var viewName  = ObjectName.Parse("APP.test_view2");
            var statement = new DropViewStatement(viewName, true);

            statement.Execute(Query);

            var exists = Query.ViewExists(viewName);

            Assert.IsFalse(exists);
        }
Esempio n. 3
0
 protected virtual SqlStatement VisitDropView(DropViewStatement statement)
 {
     return new DropViewStatement(statement.ViewName, statement.IfExists);
 }
Esempio n. 4
0
 protected virtual SqlStatement VisitDropView(DropViewStatement statement)
 {
     return(new DropViewStatement(statement.ViewName, statement.IfExists));
 }