Investigation: EF Core 10 FieldValues property type change and JSON mapping strategies#342
Merged
christiannagel merged 4 commits intomainfrom Oct 16, 2025
Merged
Conversation
…ange Co-authored-by: christiannagel <1908285+christiannagel@users.noreply.github.com>
Co-authored-by: christiannagel <1908285+christiannagel@users.noreply.github.com>
Co-authored-by: christiannagel <1908285+christiannagel@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Assess impacts and mapping strategies for FieldValues property type change
Investigation: EF Core 10 FieldValues property type change and JSON mapping strategies
Oct 15, 2025
christiannagel
approved these changes
Oct 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR provides a comprehensive investigation and documentation for issue #340 regarding the impact assessment and mapping strategies for changing the
FieldValuesproperty type fromIDictionary<string, IEnumerable<string>>toDictionary<string, string[]>in the Game class.Problem Statement
The current
FieldValuesproperty usesIDictionary<string, IEnumerable<string>>, which requires custom converters in all database providers. With EF Core 10 and SQL Server 2025 promising improved JSON support, we need to assess:Dictionary<string, string[]>Investigation Results
Documentation Delivered
This PR adds four comprehensive documentation files (2,300+ lines, 77KB total) to the
/docsdirectory:EFCore10-FieldValues-Investigation.md (33KB)
POC-FieldValues-TypeChange.md (28KB)
README-FieldValues-Investigation.md (8KB)
ISSUE-340-INVESTIGATION-SUMMARY.md (8KB)
Key Findings
Impact Scope:
Current State:
Storage Format Analysis:
Both formats work identically with either property type - no migration needed.
Mapping Strategy Options
Option 1: Direct Property Type Change ⭐ (Recommended for v4.0.0)
Pros: Clean implementation, better performance, aligns with EF Core capabilities
Cons: Breaking change requiring major version bump
Option 2: Interface with Explicit Implementation (Not recommended)
Maintains backward compatibility but adds complexity without clear benefit.
Option 3: Wait for EF Core 10 ⭐ (Current recommendation)
Test EF Core 10 capabilities before making breaking changes.
Recommendations
Immediate Action
✅ Documentation complete - This PR provides all necessary information for decision-making
Short-term (When EF Core 10 Preview Available)
Long-term (Version 4.0.0 Planning)
Final Recommendation
⭐ Wait for EF Core 10 stable release, then implement in version 4.0.0
Rationale:
Migration Path for Consumers
When implemented in v4.0.0, the change is backward-compatible for most usage patterns since arrays implement
IEnumerable<string>:What This PR Does NOT Include
This is an investigation and documentation only PR. It does not implement the type change or modify any production code. The actual implementation should be done in a future PR for version 4.0.0 after EF Core 10 is available and tested.
Related
Original prompt
Fixes #341
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.