Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 protected virtual bool CompareDelete(DeleteCommand x, DeleteCommand y)
 {
     return(this.Compare(x.Table, y.Table) && this.Compare(x.Where, y.Where));
 }