2
以下两个查询均按预期工作。我很难弄清楚如何使用“Include()”方法在一次拉动中从数据库中返回两者。如何将RavenDb查询索引结果作为Include包含到文档
var result = _documentsSession
.Advanced
.LuceneQuery<MessageStatisticResult, MessageSummaryByUserIndex>()
.Where("Email:" + command.UserName);
var user = _documentSession
.Load<IUser>("users/" + command.UserName);
只要添加“Include()”方法,Query()和Advance()就不再相关。有没有办法做到这一点?