Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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