예제 #1
0
        public async Task ExecuteScalarAsyncTyped_Test()
        {
            using (var cmd = new DatabaseCommand(_connection))
            {
                cmd.Log         = Console.WriteLine;
                cmd.CommandText = "SELECT COUNT(*) FROM EMP";
                int data = await cmd.ExecuteScalarAsync <int>();

                Assert.AreEqual(14, data);
            }
        }