Created
March 16, 2020 19:20
-
-
Save carloscds/15e628dba89c668d7fa30029780706be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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