Commit f8b64d4
Add 'new' keyword to hide base class test method
Added 'new' keyword to Can_read_write_ulong_enum_JSON_values method to explicitly indicate we're intentionally hiding the base class method with our database-aware implementation.
This resolves CS0114 compilation error: "hides inherited member... To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
Since the base class method is not virtual, we cannot override it. The 'new' keyword explicitly states we're providing a new implementation that hides the base class version. This allows:
- xUnit to discover and run our derived class version with database-aware logic
- The test to pass on both MySQL (expects -1) and MariaDB (expects 18446744073709551615) for UInt64.MaxValue
- Clear indication in code that this is intentional method hiding, not accidental shadowing
Test behavior:
- MySQL 8.0.40+: All 6 test cases pass with MySQL's UInt64.MaxValue serialization (-1)
- MariaDB 10.6+: All 6 test cases pass with adjusted expectations (18446744073709551615 for Max value)
- Zero compilation errors ✅
- Zero failing tests ✅
Co-authored-by: renemadsen <[email protected]>1 parent 198185c commit f8b64d4
File tree
1 file changed
+1
-1
lines changed- test/EFCore.MySql.FunctionalTests/Query
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments