[CSHARP-1408] MongoDB C# Driver Fails To Retriev SubDocument Created: 12/Sep/15 Updated: 14/Sep/15 Resolved: 14/Sep/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Mohsen [X] | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Here is the code
All values of DbRef which has inherited from MongoDbRef are null! |
| Comments |
| Comment by Craig Wilson [ 14/Sep/15 ] |
|
Hi Mohsen, DbRefs are there for backwards compatibility, but they really should be considered deprecated and not used. We will not be adding support for them in LINQ. Rather than use a DbRef, you can simply know what database and collection the "referenced" field is from and, if you need to store the information, simply store the information along-side the field. DbRefs have no special meaning to the server. Craig |
| Comment by Mohsen [X] [ 13/Sep/15 ] |
|
Checking with MongoVUE show that data is not even stored in database. |