I’ve got the following Log table
int LogID
text Name
datetime CreationTime
text Content
int CreatorID
I try to get all the logs created by a concrete Creator
Creator creator = myDataContext.Creator.Single<Creator>(cr => cr.Name == name);
var query = (from l in myDataContext.Log
where l.CreatorID == creator.CreatorID
select l).ToList<Log>();
but in the returned list the Creator is null.
How can I get a list of logs for a given Creator?
You need to set LoadOptions: