I've been looking for a good solution to speed up my queries in my application. I came across this link:
https://github.com/MikaelEliasson/EntityFramework.Utilities
Where in example they show how their code works:
var result = db.Contacts
.IncludeEFU(db, c => c.PhoneNumbers)
.ToList();
So basically I pass two parameters into includefu, first is the object of the context I'm using, and then using lambda expression select the child record in the same class...
My structure looks like this:
Class Items
{
//some item data properties
List<Transactions> _transactions {get;set;}
}
And my query looks like this:
var list = ctx.Items.IncludeEfu(ctx,c=>c._transactions).ToList();
But when I use my lambda expression on 2nd parameter I get only these methods:
Equals
GetHashCode
ToString
GetType
What am I doing wrong here, has anyone else worked with EF Utilities before?