public void CallPerfDbContextDirect()
{
long runsPerSec;
using(var db = new AdventureWorksLT2008R2Entities())
{
db.Configuration.LazyLoadingEnabled = false;
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
runsPerSec = RunCounter.SpinPerSec(MillisecToRun, () =>
db.QueryCustomerAddressesByCustomerID(customerIdWithManyAddresses).ToList()
);
}
this.TestContext.WriteLine("db.QueryCustomerAddressesByCustomerID(customerIdWithManyAddresses) direct sequential base line test result: {0} calls/second.", runsPerSec);
}