[CSHARP-1910] SetRepresentation is removed in driver version 2.0 and up, but still present in docs Created: 09/Feb/17  Updated: 13/Feb/17  Resolved: 13/Feb/17

Status: Closed
Project: C# Driver
Component/s: BSON, Documentation
Affects Version/s: 2.0
Fix Version/s: 2.5

Type: Task Priority: Minor - P4
Reporter: Konstantin Korniyenko Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: documentation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

http://mongodb.github.io/mongo-csharp-driver/2.0/reference/bson/mapping/#representation and later


Backwards Compatibility: Major Change

 Description   

According to [https://jira.mongodb.org/browse/DOCS-5155?jql=project%20%3D%20DOCS%20AND%20text%20~%20%22SetRepresentation%22|this] Jira issue documentation is driving by the dev team.

So at this [http://mongodb.github.io/mongo-csharp-driver/2.0/reference/bson/mapping/#representation|page], there is a usage of SetRepresentation, which was excluded from version 2.0 and up.

For example:
cm.IdMemberMap.SetRepresentation(BsonType.ObjectId);

Can someone fix this?



 Comments   
Comment by Githook User [ 13/Feb/17 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1910: Fix documentation that refers to SetRepresentation method that was removed in 2.0.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/93cdb81a64e2add91df0791d7fadf650f5e8918d

Generated at Wed Feb 07 21:41:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.