예제 #1
0
        public void ExecuteBatch()
        {
            var db = new TrackerDataContext {
                Log = Console.Out
            };

            // build up queries

            var q1 = db.Task.Take(10).ToList();


            var q2 = db.Task.Take(10);

            var dbCommand = db.GetCommand(q2, true);


            var result = db.ExecuteQuery <Task>(dbCommand.CommandText);
            var list   = result.ToList();
        }