Last active
January 12, 2017 03:02
-
-
Save JonathanMagnan/1f7ddc827aef0d2be6dd75fba4919bfe 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 Z.EntityFramework.Plus; // Don't forget to include this. | |
var ctx = new EntitiesContext(); | |
// LOAD orders and the first 10 active related entities. | |
var list = ctx.Orders.IncludeFilter(x => x.Items.Where(y => !y.IsSoftDeleted) | |
.OrderBy(y => y.Date) | |
.Take(10)) | |
.ToList(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment