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