Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
static void Main(string[] args)
{
Stopwatch contador = new Stopwatch();
contador.Start();
var db = new NorthwindContext();
var dados = db.Customers;
foreach(var c in dados)
{
Console.WriteLine(c.CompanyName);
}
contador.Stop();
Console.WriteLine("\n\nTempo da consulta: {0} segs.\n\n",contador.Elapsed.TotalSeconds);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.