Esempio n. 1
0
        public void TestCustomersGetById()
        {
            Customer cust = (Customer)customers.GetById("ALFKI");

            Assert.AreEqual("ALFKI", cust.CustomerID);
            Assert.AreEqual("Alfreds Futterkiste", cust.CompanyName);
        }
Esempio n. 2
0
        private static void MeasureEmit()
        {
            DynamicDataMapper customer = EmitDataMapper.Build(typeof(Customer), connStr, false);

            customer.GetAll();
            customer.GetById("ALFKI");
        }