Skip to content

Commit 6ef6b6d

Browse files
authored
Merge pull request #19624 from johnnypham/rowversionnull
Update rowversion AppContext switch
2 parents d124a1b + 2b9d8f4 commit 6ef6b6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/connect/ado-net/appcontext-switches.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.EnableRetryLogic", true);
104104

105105
* For information on how to enable the switch by using a configuration file see [Enable safety switch](configurable-retry-logic-config-file-sqlclient.md#enable-safety-switch).
106106

107-
## Enabling row version null behavior
107+
## Enabling rowversion null behavior
108108

109109
[!INCLUDE [appliesto-netfx-netcore-netst-md](../../includes/appliesto-netfx-netcore-netst-md.md)]
110-
Starting in version 3.0, `SqlDataReader` returns a `DBNull` value instead of an empty `byte[]`. To enable the legacy behavior of returning an empty `byte[]`, enable the AppContext switch **Switch.Microsoft.Data.SqlClient.LegacyRowVersionNullBehavior** on application startup.
110+
Starting in version 3.0, when a rowversion has a value of null, `SqlDataReader` returns a `DBNull` value instead of an empty `byte[]`. To enable the legacy behavior of returning an empty `byte[]`, enable the AppContext switch **Switch.Microsoft.Data.SqlClient.LegacyRowVersionNullBehavior** on application startup.
111111

112112
```csharp
113113
AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.LegacyRowVersionNullBehavior", true);

0 commit comments

Comments
 (0)