[CSHARP-2144] Option to save list or entity as DBRef Created: 06/Jan/18 Updated: 01/Feb/18 Resolved: 01/Feb/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Serialization |
| Affects Version/s: | 2.5 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Marcos Almeida Jr. | Assignee: | Robert Stam |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Some kind of mapping that tells driver to store a document reference instead of plain document. Example
UserOwner returns User instead of MongoDBRef |
| Comments |
| Comment by Robert Stam [ 01/Feb/18 ] |
|
This is not possible because serialization (the process of converting a C# object to a BSON document representation) is handled by the BSON layer which is below and independent of the driver, and therefore has no access to the database at all. |