Inheritance: SqlFragment
        public override string GenerateSQL(DbCommandTree tree)
        {
            DbDeleteCommandTree commandTree = tree as DbDeleteCommandTree;

            DeleteStatement statement = new DeleteStatement();
            //scope.Push(null);
            statement.Target = commandTree.Target.Expression.Accept(this);

            statement.Where = commandTree.Predicate.Accept(this);

            return statement.ToString();
        }
Example #2
0
        public override string GenerateSQL(DbCommandTree tree)
        {
            DbDeleteCommandTree commandTree = tree as DbDeleteCommandTree;

            DeleteStatement statement = new DeleteStatement();

            //scope.Push(null);
            statement.Target = commandTree.Target.Expression.Accept(this);

            statement.Where = commandTree.Predicate.Accept(this);

            return(statement.ToString());
        }