Created
August 14, 2019 18:06
-
-
Save GeradeDev/d3b97198065c7cea0190cc36776a7b6e 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 (var ctx = new OrderContext()) | |
{ | |
//Loading Order only | |
Order o = await ctx.Orders.GetAsync(OrderId); | |
//Loads Order LineItems using Lazy Loading | |
var orderItems = o.LineItems; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment