Last active
May 21, 2019 21:06
-
-
Save maltegoetz/4e72170ed1a13b47ed90196e093e2b5d to your computer and use it in GitHub Desktop.
EF Core Lazy Loading Pizza
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
public class Pizza | |
{ | |
public int Id { get; set; } | |
public virtual ICollection<Topping> Toppings { get; set; } | |
} | |
public class Topping | |
{ | |
public string Name { get; set; } | |
public float Price { get; set; } | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment