Created
July 2, 2018 16:13
-
-
Save carloscds/b1d42852493dd2f48e7fdaa8517247dd 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
using System; | |
namespace LazyLoading | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var db = new Contexto(); | |
var cliente = db.Customers; | |
foreach(var c in cliente) | |
{ | |
Console.WriteLine($"{c.CompanyName} - Orders: {c.Orders.Count}"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment