コード例 #1
0
        public void ExecuteCommand()
        {
            List <User> users;
            List <Task> tasks;

            using (var db = new TrackerDataContext {
                Log = Console.Out
            })
            {
                db.Connection.Open();
                db.ExecuteCommand("SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;");

                users = db.User.ToList();
                tasks = db.Task.ToList();
            }

            Assert.IsNotNull(users);
            Assert.IsNotNull(tasks);
        }