private static void MeasureEmit() { DynamicDataMapper customer = EmitDataMapper.Build(typeof(Customer), connStr, false); customer.GetAll(); customer.GetById("ALFKI"); }
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); }