Repository navigation
Support EF Core 11 (1.1.0) - #3
Merged
Merged
Conversation
…yIndex.Properties EF Core 11 changed IReadOnlyIndex.Properties to a list of IReadOnlyPropertyBase, since an index can now hold a JSON complex property. 1.0.0's net10.0 build, loaded by an EF Core 11 app, threw MissingMethodException whenever it built a model with an index. Index members are now taken as IEnumerable<IReadOnlyPropertyBase>, and an index holding a non-scalar member is left out of the MR014 comparison. Tests run on net11.0 with SqlServer, Sqlite, Npgsql (rc) and Oracle MySQL (preview); CI and the release workflow install the .NET 11 SDK. Version 1.1.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
EF Core 11 changed
IReadOnlyIndex.PropertiesfromIReadOnlyList<IReadOnlyProperty>to a list ofIReadOnlyPropertyBase, because an index can now hold a JSON complex property. An EF Core 11 app on 1.0.0 gets thenet10.0build, which throws when it builds any model that has an index:What changes
ModelIdentifiersandNoRedundantIndexesRulenow take index members asIEnumerable<IReadOnlyPropertyBase>. MR014 leaves out any index that holds a non-scalar member, rather than guessing at its columns.net11.0target: builds against EF Core Relational 11.0.0, the minimum version its dependency group requires.net11.0:net11.0target (NETSDK1045).Versionis 1.1.0.Verified
net8.0,net9.0,net10.0andnet11.0.net11.0build doesn't compile without the fix.net11.0app on EF Core 11.0.0 crashes with 1.0.0 from nuget.org and builds its model with the 1.1.0 pack.lib/net8.0throughlib/net11.0.🤖 Generated with Claude Code