Ejemplo n.º 1
0
 public void ApplyTest()
 {
     QueryMethods.CrossApplyWithGroupByAndTake();
     QueryMethods.CrossApplyWithGroupJoinAndTake();
     QueryMethods.CrossApplyWithRelationshipAndTake();
     QueryMethods.OuterApplyWithGroupByAndFirstOrDefault();      // TODO.N+1.
     QueryMethods.OuterApplyWithGroupJoinAndFirstOrDefault();    // TODO.N+1.
     QueryMethods.OuterApplyWithRelationshipAndFirstOrDefault(); // TODO.N+1.
 }
Ejemplo n.º 2
0
        public void ApplyTest()
        {
            QueryMethods.CrossApplyWithGroupByAndTake(new AdventureWorks());
            QueryMethods.CrossApplyWithGroupJoinAndTake(new AdventureWorks());
#if NETFX
            QueryMethods.CrossApplyWithRelationshipAndTake(new AdventureWorks());
#endif
            QueryMethods.OuterApplyWithGroupByAndFirstOrDefault(new AdventureWorks());
            QueryMethods.OuterApplyWithGroupJoinAndFirstOrDefault(new AdventureWorks());
            QueryMethods.OuterApplyWithRelationshipAndFirstOrDefault(new AdventureWorks());
        }