예제 #1
0
        public static void LINQ_ToString()
        {
            using (var ctx = new WWWingsContext())
            {
                ctx.Log();


                var q1 = from p in ctx.FlightSet
                         where p.FlightNo < 10
                         orderby p.FreeSeats
                         select p;

                EntityQueryable <Flight> q1b = (EntityQueryable <Flight>)q1;

                Console.WriteLine(q1.ToString());  // EF: returns SQL. EFC: returns type :-(
                Console.WriteLine(q1b.ToString()); // EF: returns SQL. EFC: returns type :-(
            }
        }