Skip to content

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Jul 16, 2025

Part of #31252

It still needs to be refactored and usages of IInternalEntry should be replaced with a new public interface

@AndriySvyryd AndriySvyryd requested a review from a team as a code owner July 16, 2025 21:00
@AndriySvyryd AndriySvyryd force-pushed the Issue31252_Update branch 2 times, most recently from e40075a to a884308 Compare July 17, 2025 03:19
Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty straightforward 👍

var jsonPartialUpdateInfo = new JsonPartialUpdateInfo();
jsonPartialUpdateInfo.Path.Insert(0, new JsonPartialUpdatePathEntry("$", null, entry, Navigation: null, ComplexProperty: complexProperty));
jsonPartialUpdateInfo.PropertyValue = entry.GetCurrentValue(complexProperty);
jsonColumnsUpdateMap[jsonColumn] = jsonPartialUpdateInfo;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have the full context, but it seems odd that we populate this map and then iterate over it to process it - can we simply extract the code below to a local function and call that instead of having the intermediate map? I guess we'd still need a bit of tracking to ensure we don't handle the same JSON column (though I'm assuming mapping two navigations/complex properties to the same JSON column isn't supported?).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, all this refactoring will come later

@AndriySvyryd AndriySvyryd force-pushed the Issue31237_PropertyValues branch 3 times, most recently from e9d8fc2 to bfa6a86 Compare July 18, 2025 02:28
@AndriySvyryd AndriySvyryd force-pushed the Issue31237_PropertyValues branch from bfa6a86 to af9e1dc Compare July 18, 2025 02:56
@AndriySvyryd AndriySvyryd force-pushed the Issue31237_PropertyValues branch from af9e1dc to 1b05bed Compare July 18, 2025 03:41
@AndriySvyryd AndriySvyryd merged commit 5f149a0 into Issue31237_PropertyValues Jul 18, 2025
6 checks passed
@AndriySvyryd AndriySvyryd deleted the Issue31252_Update branch July 18, 2025 04:47
roji added a commit to roji/efcore that referenced this pull request Jul 19, 2025
Now that the update pipeline works, dotnet#36379
roji added a commit to roji/efcore that referenced this pull request Jul 20, 2025
Now that the update pipeline works, dotnet#36379
roji added a commit to roji/efcore that referenced this pull request Jul 20, 2025
Now that the update pipeline works, dotnet#36379
roji added a commit to roji/efcore that referenced this pull request Jul 20, 2025
Now that the update pipeline works, dotnet#36379
roji added a commit to roji/efcore that referenced this pull request Jul 21, 2025
Now that the update pipeline works, dotnet#36379
roji added a commit to roji/efcore that referenced this pull request Jul 21, 2025
Now that the update pipeline works, dotnet#36379
roji added a commit that referenced this pull request Jul 21, 2025
Now that the update pipeline works, #36379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants