File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/MongoDB.Bson/Serialization
tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1337,7 +1337,7 @@ internal IDiscriminatorConvention GetDiscriminatorConvention()
13371337
13381338 void EnsureNoMemberMapConflicts ( string elementName )
13391339 {
1340- if ( AppContext . TryGetSwitch ( "DisableCSharp4040Validation " , out bool disableCSharp4040Validation ) && disableCSharp4040Validation )
1340+ if ( AppContext . TryGetSwitch ( "Switch.MongoDB.Driver.DisableDiscriminatorFieldConflictCheck " , out bool disableConflictCheck ) && disableConflictCheck )
13411341 {
13421342 return ;
13431343 }
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class CSharp4040SwitchTests : LinqIntegrationTest<CSharp4040SwitchTests.C
3030{
3131 static CSharp4040SwitchTests ( )
3232 {
33- AppContext . SetSwitch ( "DisableCSharp4040Validation " , true ) ;
33+ AppContext . SetSwitch ( "Switch.MongoDB.Driver.DisableDiscriminatorFieldConflictCheck " , true ) ;
3434
3535 var discriminatorConvention = new HierarchicalDiscriminatorConvention ( "TypeNames" ) ;
3636
@@ -46,7 +46,7 @@ static CSharp4040SwitchTests()
4646
4747 public void Dispose ( )
4848 {
49- AppContext . SetSwitch ( "DisableCSharp4040Validation " , false ) ;
49+ AppContext . SetSwitch ( "Switch.MongoDB.Driver.DisableDiscriminatorFieldConflictCheck " , false ) ;
5050 }
5151
5252 public CSharp4040SwitchTests ( ClassFixture fixture )
You can’t perform that action at this time.
0 commit comments