我有以下类结构
awk
我需要获取问题详情,因为我使用
public class Question
{
public long ID { get; set; }
public string Content { get; set; }
public DateTime On { get; set; }
public Member Member { get; set; }
public List<Answer> Answers { get; set; }
}
public class Answer
{
public long ID { get; set; }
public string Content { get; set; }
public DateTime On { get; set; }
public Member Member { get; set; }
public List<Star> Stars { get; set; }
public List<Reply> Replys { get; set; }
}
public class Reply
{
public long ID { get; set; }
public string Content { get; set; }
public DateTime On { get; set; }
public Member Member { get; set; }
}
public class Star
{
public long ID { get; set; }
public Member Member { get; set; }
}
但是这句话给了我一个例外
'on clause'
中的未知列'Extent1.ID'如果我从任何Include中移除一个包含或删除成员,它就可以正常工作。
我遇到了类似的MySQL EF 6问题,该问题已发布here。使用的MySQL版本是MySQL 6.9.7.0。