protected override Expression VisitDelete(DeleteCommand delete) { this.Write("DELETE FROM "); bool saveHideTable = this.HideTableAliases; bool saveHideColumn = 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 = saveHideTable; this.HideColumnAliases = saveHideColumn; return(delete); }
protected override Expression VisitDelete(DeleteCommand delete) { return(this.BuildExecuteCommand(delete)); }
protected virtual bool CompareDelete(DeleteCommand x, DeleteCommand y) { return(this.Compare(x.Table, y.Table) && this.Compare(x.Where, y.Where)); }