Skip to content

Commit 251d09c

Browse files
authored
mongodb-4to5 editor review (#7196)
1 parent 283aa25 commit 251d09c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

persistence/upgrades/mongodb-4to5.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ isUpgradeGuide: true
1010

1111
## Upgraded the MongoDB.Driver to version 3
1212

13-
The [MongoDB.Driver](https://www.nuget.org/packages/MongoDB.Driver) introduces [breaking changes](https://www.mongodb.com/docs/drivers/csharp/current/upgrade/v3/), such as enforcing the `GuidRepresentationMode.V3` to be the only supported mode which affects the storing and loading of saga data. The persistence has been updated internally to accommodate these changes and uses this default mode unless explicitly configured.
13+
The [MongoDB.Driver](https://www.nuget.org/packages/MongoDB.Driver) introduces [breaking changes](https://www.mongodb.com/docs/drivers/csharp/current/upgrade/v3/), such as enforcing the `GuidRepresentationMode.V3` to be the only supported mode which affects the storing and loading of saga data. The persistence has been updated internally to accommodate these changes and uses this default mode unless explicitly configured otherwise.
1414

15-
The enforcement for choosing a GUID representation mode has been introduced in the previous versions of the client. For saga data that requires to remain backward compatible, it is necessary to choose the GUID representation mode explicitly, either on a global level by overriding the `GuidSerializer` or by adjusting the class mappings.
15+
The enforcement for choosing a GUID representation mode has been introduced in the previous versions of the client. For saga data that requires backward compatibility, it is necessary to choose the GUID representation mode explicitly. This is achieved either on a global level, by overriding the `GuidSerializer`, or by adjusting the class mappings.
1616

17-
Here are a few examples to indicate some of the possible options. It is necessary to evaluate those options on a case by case basis to make sure previously stored sagas can still be retrieved. To learn more about serializing GUIDs in the .NET/C# Driver, see the [GUIDs page](https://www.mongodb.com/docs/drivers/csharp/current/fundamentals/serialization/guid-serialization/#std-label-csharp-guids).
17+
The following sections demonstrate a few examples to indicate some of the possible options. It is necessary to evaluate those options on a case-by-case basis to make sure previously stored sagas can still be retrieved. To learn more about serializing GUIDs in the .NET/C# Driver, see the [GUIDs page](https://www.mongodb.com/docs/drivers/csharp/current/fundamentals/serialization/guid-serialization/#std-label-csharp-guids).
1818

1919
### Switching the mode on a global level
2020

@@ -89,7 +89,7 @@ class SagaData : IContainSagaData
8989

9090
#### Representing GUIDs as strings
9191

92-
Alternatively, it is supported to represent GUIDs as strings. This option was previously not available and may only be used for new sagas should you wish to represent the saga IDs as strings.
92+
Alternatively, GUIDs can be represented as strings. This option was previously not available and may only be used for new sagas should you wish to represent the saga IDs as strings.
9393

9494
```csharp
9595
BsonClassMap.RegisterClassMap<ContainSagaData>(m =>
@@ -143,4 +143,4 @@ BsonClassMap.RegisterClassMap<ContainSagaData>(m =>
143143

144144
m.SetIgnoreExtraElements(true);
145145
});
146-
```
146+
```

0 commit comments

Comments
 (0)