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.
有没有办法在没有映射的情况下包含 DbRef?
一样,
var chats = Database.db.GetCollection<ChatData>("Chats").Include(x=>x.User);
至
var chats = db.GetCollection("Chats").Include(x=>x["User"]);
现在有可能,在当前的 master 分支中。
利用db.GetCollection("Chats").Include("User")
db.GetCollection("Chats").Include("User")
包括现在支持字符串作为路径,如:“ User”,“ Customer.Address”
User
Customer.Address
将在下一版本的 NuGet 中可用。