NHibernate.QueryException: could not resolve property
问题 I'm using FluentNHibernate and Linq To Nhibernate, with these entities (only the relevant parts): public class Player : BaseEntity<Player> { private readonly IList<PlayerInTeam> allTeams = new List<PlayerInTeam>(); public IEnumerable<Team> Teams { get { return from playerInTeam in allTeams where playerInTeam.Roster.Match == null select playerInTeam.Roster.Team; } } } public class PlayerInTeam : BaseEntity<PlayerInTeam> { public int PlayerNumber { get; set; } public Player Player { get; set; }