Can you automatically retrieve a foreign document in your mongodb model using c#? <p>I would like to setup my mongo db poco models so that they automatically retreive their foreign documents, similarly to how its handled by EF and nhibernate.</p> <p>This is the solution that I have come up with so far, its a bit clunky but the best that I could manage:</p> <p>Basic model:</p> <pre><code> public class DocumentOwner { public virtual ObjectId OwnerID { get; set; } } </code></pre> <p>Extended model with manual retrieval of foreign documents:</p> <pre><code>public class DocumentOwner { public MongoDatabase DB { get; set; } public virtual ObjectId OwnerID { get; set; } public virtual Individual Owner { get { return this.DB.GetCollection&lt;Individual&gt;().FindOne(Query&lt;Individual&gt;.EQ(x =&gt; x.Id, this.OwnerID)); } } </code></pre> <p>The main problem with this solution is that I have to manually inject the mongo database instance which is quite clunky, if there was a way to use ninject to inject this instance that would be a lot tidier. Even better if somehow I could use MongoDBRef to retrieve the individual without having to perform a manual query...</p>