This question is locked. New answers and comments are not allowed.
Hey Guys,
I have this query:
​var fetchStrategy = new FetchStrategy();
fetchStrategy.LoadWith<MemberLogin>(x => x.Student);
var emTeamDesigner = new emTeamDesigner();
var query = emTeamDesigner.MemberLogins.Where(x => x.lk_MemberType_pk == 1 && x.Active == true && x.Student.GroupMembers.Any(gm => gm.IveyGroup_pk == courseSectionId)).LoadWith(fetchStrategy);
It returns all Member Objects (MemberLogin) that are of type student (1) and Active that exist in a specific group (GroupMembers)
this looks to be working just fine and I get back the Members I would expect to get back.
The problem is on the MemberLogin object there is a property called Student and this should contain an object called Student but it is always NULL and I am not sure why?
I have tried adding the FetchStategy but that did not help, my model looks fine, and the query had to use student to get its results, but it is not being loaded into the results I get back.
Any ideas?
I have this query:
​var fetchStrategy = new FetchStrategy();
fetchStrategy.LoadWith<MemberLogin>(x => x.Student);
var emTeamDesigner = new emTeamDesigner();
var query = emTeamDesigner.MemberLogins.Where(x => x.lk_MemberType_pk == 1 && x.Active == true && x.Student.GroupMembers.Any(gm => gm.IveyGroup_pk == courseSectionId)).LoadWith(fetchStrategy);
It returns all Member Objects (MemberLogin) that are of type student (1) and Active that exist in a specific group (GroupMembers)
this looks to be working just fine and I get back the Members I would expect to get back.
The problem is on the MemberLogin object there is a property called Student and this should contain an object called Student but it is always NULL and I am not sure why?
I have tried adding the FetchStategy but that did not help, my model looks fine, and the query had to use student to get its results, but it is not being loaded into the results I get back.
Any ideas?