Example #1
0
        private static void DemoPart1()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("1). Filtering: Onderstaande functies is een filtering van de 15 producten.");
            WhiteLine();
            Filtering.Intro();
            WhiteLine();
            Filtering.MethodHighTierProducts();
            Breaker();
            Filtering.QueryHighTierProducts();
            Breaker();

            Console.WriteLine("2). Ordering: Onderstaande functies is een ordering van 15 orders.");
            WhiteLine();
            Ordering.Intro();
            WhiteLine();
            Ordering.MethodByTotalPrice();
            Breaker();
            Ordering.QueryByTotalPrice();
            Breaker();

            Console.WriteLine("3). Projection: Onderstaande functies is een projectie van 15 customers.");
            WhiteLine();
            Projection.SelectIntro();
            WhiteLine();
            Projection.MethodSelectCustomerName();
            Breaker();
            Projection.QuerySelectCustomerName();
            Breaker();

            Projection.SelectManyIntro();
            WhiteLine();
            Projection.MethodSelectManyProductIds();
            Breaker();
            Projection.QuerySelectManyProductIds();
            Breaker();

            Console.WriteLine("4). Joining: Onderstaande functies is een joining van 15 producten, orders en customers.");
            WhiteLine();
            Joining.InnerJoinIntro();
            WhiteLine();
            Joining.MethodInnerCustomerOrderProducts();
            Breaker();
            Joining.QueryInnerCustomerOrderProducts();
            Breaker();

            Joining.OuterJoinIntro();
            WhiteLine();
            Joining.MethodOuterCustomerOrderProducts();
            Breaker();
            Joining.QueryOuterCustomerOrderProducts();
            Breaker();

            Console.WriteLine("5). Grouping: Onderstaande functies is een groupering van 15 orders.");
            WhiteLine();
            Grouping.Intro();
            WhiteLine();
            Grouping.MethodByShippingCost();
            Breaker();
            Grouping.QueryByShippingCost();
            Breaker();

            Console.WriteLine("6). Aggregates: Onderstaande functies zijn aggregates van 15 producten.");
            WhiteLine();
            Aggregates.CountIntro();
            WhiteLine();
            Aggregates.MethodCountByPrice();
            Breaker();
            Aggregates.QueryCountByPrice();
            Breaker();

            Aggregates.MinIntro();
            WhiteLine();
            Aggregates.MethodMinPrice();
            Breaker();
            Aggregates.QueryMinPrice();
            Breaker();

            Aggregates.MaxIntro();
            WhiteLine();
            Aggregates.MethodMaxPrice();
            Breaker();
            Aggregates.QueryMaxPrice();
            Breaker();

            Aggregates.SumIntro();
            WhiteLine();
            Aggregates.MethodSumPrice();
            Breaker();
            Aggregates.QuerySumPrice();
            Breaker();

            Aggregates.AverageIntro();
            WhiteLine();
            Aggregates.MethodAveragePrice();
            Breaker();
            Aggregates.QueryAveragePrice();
            Breaker();

            Console.WriteLine("7). Partitioning: Onderstaande functies zijn partitioning van 15 customers.");
            WhiteLine();
            Partitioning.TakeSkipIntro();
            WhiteLine();
            Partitioning.TakeFive();
            Breaker();
            Partitioning.SkipFive();
            Breaker();

            Partitioning.FirstFirstOrDefaultIntro();
            WhiteLine();
            Partitioning.FirstOnName();
            Breaker();
            Partitioning.FirstOnNameException();
            Breaker();
            Partitioning.FirstOrDefaultOnName();
            Breaker();

            Partitioning.DistinctIntro();
            WhiteLine();
            Partitioning.DistinctCustomers();
            Breaker();

            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("8). Deferred Execution: Onderstaande functies is het uitvoeren van deferred execution.");
            WhiteLine();
            DeferredExecution.Demo();
            Breaker();
        }