4
MongoDB에 매핑 된 개인용 백킹 필드를 얻으려고합니다. 같은
내 모델은 보인다 : 나는 기본적으로 (몽고 내 문서에 존재) CompetitorBests로, _competitorBests을지도하기 위해 노력하고있어MongoDB와 함께 개인용 백킹 필드 매핑하기 C#
public class Competitor
{
private IList<CompetitorBest> _competitorBests;
public virtual int CompetitorId { get; set; }
public virtual string Name
{
get
{
if (Type == "Team")
return TeamName;
return FirstName + " " + LastName;
}
}
public virtual IEnumerable<CompetitorBest> CompetitorBests
{
get { return _competitorBests.ToArray(); }
}
}
참고 :이 모델은 NHibernate에 의해 공유되는 (따라서 virtual
)
문서에서 명백한 내용을 볼 수 없습니다.
어떻게해야합니까?
를 같은 문제가 발생했습니다! 감사! – lexeme
.CompetitorBests 속성에서 linq 쿼리를 실행할 수 있었습니까? 그것은 나를 위해 폭파. – Jereme