Eager-Loading not working
-
I have a object lets call it All. All has a navigation prop to A and B, so do A and B have to All. i am trying to do something like: ObjectQuery set = context.CreateQuery(searchQuery).Include("All.B"); OR ObjectQuery set = context.CreateQuery(searchQuery).Include("All").Include("All.B"); i.e. trying to get from A->All->B, so that entire data is returned to retrive all contens of B,. the query executes fine, but the returned results are null for B everything else is fine Can u tell what went wrong, or if this is even possible, if so then how?
-
I have a object lets call it All. All has a navigation prop to A and B, so do A and B have to All. i am trying to do something like: ObjectQuery set = context.CreateQuery(searchQuery).Include("All.B"); OR ObjectQuery set = context.CreateQuery(searchQuery).Include("All").Include("All.B"); i.e. trying to get from A->All->B, so that entire data is returned to retrive all contens of B,. the query executes fine, but the returned results are null for B everything else is fine Can u tell what went wrong, or if this is even possible, if so then how?
Hi Dont tell like .include("All.b"); instead tell like .include("b"); This will fix your problem. Thanks , Thani