Пример #1
0
        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);
        }
Пример #2
0
 protected virtual bool CompareDelete(DeleteCommand x, DeleteCommand y)
 {
     return(Compare(x.Table, y.Table) && Compare(x.Where, y.Where));
 }
Пример #3
0
 protected override Expression VisitDelete(DeleteCommand delete)
 {
     return(BuildExecuteCommand(delete));
 }