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

NuGet package 3.1.0 does not support .NET 6 #155

Open
Lord-Turmoil opened this issue Jul 11, 2023 · 0 comments
Open

NuGet package 3.1.0 does not support .NET 6 #155

Lord-Turmoil opened this issue Jul 11, 2023 · 0 comments

Comments

@Lord-Turmoil
Copy link

It seems that the implementation of IRepository.Delete used ModelExtensions Class, which is marked obsolete in .NET 6. So, deleting an entity will trigger exceptions and result in failure.

...
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
      An unhandled exception has occurred while executing the request.
      System.TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.ModelExtensions' from assembly 'Microsoft.EntityFrameworkCore, Version=7.0.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
...

Since no source code provided, it would be nice if you could make a quick fix for this. 🥹

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

1 participant