protected override Expression VisitDelete(DeleteCommand delete) { Write("DELETE FROM "); bool saveHideTable = HideTableAliases; bool saveHideColumn = HideColumnAliases; HideTableAliases = true; HideColumnAliases = true; VisitSource(delete.Table); if (delete.Where != null) { WriteLine(Indentation.Same); Write("WHERE "); VisitPredicate(delete.Where); } HideTableAliases = saveHideTable; HideColumnAliases = saveHideColumn; return(delete); }
protected virtual bool CompareDelete(DeleteCommand x, DeleteCommand y) { return(Compare(x.Table, y.Table) && Compare(x.Where, y.Where)); }
protected override Expression VisitDelete(DeleteCommand delete) { return(BuildExecuteCommand(delete)); }