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(); }
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()); }