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

Method Not Found exception (ModelExtensions.FindEntityType) in EFCore 6-preview 2 #24396

Closed
Webreaper opened this issue Mar 14, 2021 · 1 comment
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported

Comments

@Webreaper
Copy link

My app runs fine with EFCore 6 preview 1 and .Net 6.0 preview 2. However, if I upgrade to EFCore 6 preview 2, I start getting exceptions for any write operation.

Method not found: 'Microsoft.EntityFrameworkCore.Metadata.IEntityType Microsoft.EntityFrameworkCore.ModelExtensions.FindEntityType(Microsoft.EntityFrameworkCore.Metadata.IModel, System.Type)

Unclear if I'm missing something? Feels like this should just work as a straight upgrade from preview-1 to preview-2.

Details:

I'm using the SQLite provider. You can see the CSProj file and dependencies here (this is the commit where I reverted back to preview-1 to fix the exception):

Webreaper/Damselfly@9584ab3

Reverting back to preview-1 per this commit fixes the issue with no other code changes.

Include provider and version information

EF Core version: 6.0-preview 2 (v6.0.0-preview.2.21154.2)
Database provider: Microsoft.EntityFrameworkCore.Sqlite
Operating system: osx-arm64 11.3 beta running on a MacBook Pro M1
Target framework: .Net 6.0-preview-2 (x64 using Rosetta 2, not the Arm64 version)
IDE: Visual Studio for Mac v8.9 (build 409)

@Webreaper
Copy link
Author

Actually, further investigation and it looks like this is a problem with https://github.com/borisdj/EFCore.BulkExtensions - but that doesn't support .Net 5 or 6 yet, so I'll close this as a false alarm.

@ajcvickers ajcvickers added the closed-no-further-action The issue is closed and no further action is planned. label Mar 15, 2021
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported
Projects
None yet
Development

No branches or pull requests

2 participants