Details
-
New Feature
-
Resolution: Won't Fix
-
Major - P3
-
None
-
2.5
-
None
Description
Some kind of mapping that tells driver to store a document reference instead of plain document.
Example
map.MapMember(x => x.UserOwner /*one user*/) |
.SetIsReference("Users" /*collectionName*/) |
.SetIsRequired(true); |
|
|
map.MapMember(x => x.AssociatedProfiles /* many profiles */) |
.SetIsReference("Profiles" /*collectionName*/) |
.SetIsRequired(true); |
UserOwner returns User instead of MongoDBRef
AssociatedProfiles returns IList<Profile> (instead of MongoDBRef[])