Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以获得一个实体的多个相关实体?例如,我有一个类 Album,它有两个属性,即 Artist 和 Genre.... 我怎样才能获得具有相关艺术家和流派的专辑?提前感谢:p
简单到
var albums = session.Query<Album>() .Where(a => <whatever>) .Fetch(a => a.Artist) .Fetch(a => a.Genre) .ToList();