[CSHARP-232] Create DBRefs with conventions Created: 27/May/11 Updated: 20/Mar/14 Resolved: 04/May/12 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.0 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Jon Eckstein | Assignee: | Robert Stam |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | dbref | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Instead of polluting your model with MongoDB specific classes like MongoDBRef, you should be able to handle it via conventions. For example, I can create a convention where "Manager" is the collection name and "Id" is the field to join on. When a save occurs, the driver can detect this convention and apply the $ref appropriately. |
| Comments |
| Comment by Craig Wilson [ 04/May/12 ] |
|
Jon, Craig |
| Comment by Craig Wilson [ 04/May/12 ] |
|
Effectively the same request. |