コード例 #1
0
 public override void VisitDeleteStatement(DeleteStatementSyntax node)
 {
     AppendLeadingComments(node);
     AppendIndented("{0}.delete(", Soql);
     node.Expression.Accept(this);
     Append(");");
     AppendTrailingComments(node);
 }
コード例 #2
0
        public void ApexDeleteStatementIsGenerated()
        {
            var deleteStatement = new DeleteStatementSyntax
            {
                Expression = new ExpressionSyntax("contactOld"),
            };

            Check(deleteStatement, @"delete contactOld;");
        }
コード例 #3
0
        public void ApexDeleteStatementGeneratesSoqlHelperMethod()
        {
            var deleteStatement = new DeleteStatementSyntax
            {
                Expression = new ExpressionSyntax("contactOld")
            };

            Check(deleteStatement, @"Soql.delete(contactOld);");
        }
コード例 #4
0
 public virtual void VisitDeleteStatement(DeleteStatementSyntax node) => DefaultVisit(node);