Пример #1
0
        internal static void Process(Command command)
        {
            System.Data.Entity.Core.Query.InternalTrees.Node topMostSort = command.Root.Child0 == null || command.Root.Child0.Op.OpType != OpType.Sort ? (System.Data.Entity.Core.Query.InternalTrees.Node)null : command.Root.Child0;
            SortRemover sortRemover = new SortRemover(command, topMostSort);

            command.Root = sortRemover.VisitNode(command.Root);
        }
Пример #2
0
 internal static void Process(Command command)
 {
     Node topMostSort;
     if (command.Root.Child0 != null
         && command.Root.Child0.Op.OpType == OpType.Sort)
     {
         topMostSort = command.Root.Child0;
     }
     else
     {
         topMostSort = null;
     }
     var sortRemover = new SortRemover(command, topMostSort);
     command.Root = sortRemover.VisitNode(command.Root);
 }
Пример #3
0
        internal static void Process(Command command)
        {
            Node topMostSort;

            if (command.Root.Child0 != null &&
                command.Root.Child0.Op.OpType == OpType.Sort)
            {
                topMostSort = command.Root.Child0;
            }
            else
            {
                topMostSort = null;
            }
            var sortRemover = new SortRemover(command, topMostSort);

            command.Root = sortRemover.VisitNode(command.Root);
        }