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

System.MissingMethodException after migration to .Net 6 #69

Open
KovarikJiri opened this issue Dec 22, 2021 · 6 comments
Open

System.MissingMethodException after migration to .Net 6 #69

KovarikJiri opened this issue Dec 22, 2021 · 6 comments

Comments

@KovarikJiri
Copy link

When I migrated the project to .Net 6 and Npgsql.Bulk into version 0.10.1 then I received the following exception.
System.MissingMethodException: Method not found: 'Microsoft.EntityFrameworkCore.Metadata.IEntityType Microsoft.EntityFrameworkCore.ModelExtensions.FindEntityType(Microsoft.EntityFrameworkCore.Metadata.IModel, System.Type)'. at Npgsql.Bulk.NpgsqlHelper.GetTableSchema(DbContext context, Type t) at Npgsql.Bulk.NpgsqlBulkUploader.GetEntityInfo[T]() at Npgsql.Bulk.NpgsqlBulkUploader.Import[T](IEnumerable1 entities)
`

@vaibhavpingle
Copy link

@neisbut - First of all thank you for all your effort and hardwork maintaining this library and making it available for public use. However, I am in need of this urgently. I am sure I can slap together something pretty quickly, but wanted to leverage this great library. How soon do you anticipate this issue to be resolved?

@KovarikJiri
Copy link
Author

I have found the workaround to not use the NuGet package but build the library locally and attach the generated DLL into my project.

@martea
Copy link

martea commented Feb 2, 2022

@KovarikJiri simply dotnet build src/*dotnet6/*csproj or how did you approach the building?

@KovarikJiri
Copy link
Author

@martea My approach was to build the src/Npgsql.Bulk.DotNet6 project in Rider IDE with Release configuration so I would say your solution should work when you specify the release configuration dotnet build src/*dotnet6/*csproj -c Release. Then you can find dll in folder src\Npgsql.Bulk.DotNet6\bin\Release\net6.0

@Colt2205
Copy link

Any idea if there's been headway on getting this issue resolved? KovarikJiri's work around can likely work but I'd want to keep to using the nuget package if possible.

@adisadi
Copy link

adisadi commented May 25, 2022

Please update the Nuget Package! The current version works....

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

5 participants