Skip to content

Instantly share code, notes, and snippets.

@carloscds
Created July 2, 2018 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carloscds/b1d42852493dd2f48e7fdaa8517247dd to your computer and use it in GitHub Desktop.
Save carloscds/b1d42852493dd2f48e7fdaa8517247dd to your computer and use it in GitHub Desktop.
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