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

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

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