Ejemplo n.º 1
0
        private static void MeasureEmit()
        {
            DynamicDataMapper customer = EmitDataMapper.Build(typeof(Customer), connStr, false);

            customer.GetAll();
            customer.GetById("ALFKI");
        }
Ejemplo n.º 2
0
        public void TestCustomerGetAll()
        {
            //int SQLCount = customers.Count();  // impossible to do
            IEnumerable res   = customers.GetAll();
            int         count = 0;

            foreach (object p in res)
            {
                Console.WriteLine(p);
                count++;
            }
            Assert.AreEqual(91, count);
        }