protected virtual Expression VisitCommand(CommandExpression command) { switch ((DbExpressionType)command.NodeType) { case DbExpressionType.Insert: return(this.VisitInsert((InsertCommand)command)); case DbExpressionType.Update: return(this.VisitUpdate((UpdateCommand)command)); case DbExpressionType.Delete: return(this.VisitDelete((DeleteCommand)command)); case DbExpressionType.If: return(this.VisitIf((IFCommand)command)); case DbExpressionType.Block: return(this.VisitBlock((BlockCommand)command)); case DbExpressionType.Declaration: return(this.VisitDeclaration((DeclarationCommand)command)); default: return(this.VisitUnknown(command)); } }
protected virtual Expression VisitCommand(CommandExpression command) { this.Write(this.FormatQuery(command)); return(command); }
protected override Expression VisitCommand(CommandExpression command) { this.isTopLevel = true; return(base.VisitCommand(command)); }