Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with EntityFrameWork 9.0.0 and .net 8.0.300 Versions (I am a newbie in .NET ) #114

Open
kaankarakoc42 opened this issue Jan 3, 2025 · 1 comment

Comments

@kaankarakoc42
Copy link

An unhandled exception occurred while processing the request.
MissingMethodException: Method not found: 'System.Collections.Generic.List`1<Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey> Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty.get_ForeignKeys()'.
DotNetEd.CoreAdmin.Controllers.CoreAdminDataController.GetDbSetValueOrNull(string dbSetName, out DbContext dbContextObject, out Type typeOfEntity, out Dictionary<string, Dictionary<object, string>> relationships)

@joepperkins
Copy link

There is a breaking change in the framework, download the repo and edit below and reference the changed DotNetEd.CoreAdmin.csproj from your project until an updated nuget package is published.

Change line 92 to var typeOfChild = f.ForeignKeys.First();
DotNetEd.CoreAdmin\Controllers\CoreAdminDataController.cs

ForeignKeys[0] is no longer a valid accessor as it has no indexer

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

No branches or pull requests

2 participants