Hello. When i try to run my app on .NET Core 3.0 Preview 6 it fails with error:
Unhandled Exception: System.TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.IMemberTranslator' from assembly 'Microsoft.EntityFrameworkCore.Relational
, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at Microsoft.Extensions.DependencyInjection.NpgsqlEntityFrameworkServicesBuilderExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
As i understand, problem is here - https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/blob/d86bd4eff553d9a65713d8a1d2e84a41791f5a8b/src/EFCore.PG/Extensions/NpgsqlServiceCollectionExtensions.cs#L96
and caused by https://github.com/aspnet/EntityFrameworkCore/pull/14455
You will have to wait until a preview6 of the Npgsql provider is released. This is expected to take a while, as the upstream changes are quite significant - we may end up syncing only for preview7.
Hi @roji. Do you already have a slight idea when this will be available?
Probably only for preview7, which is not too far away. Once that's out, I'll try to do a big push and release the corresponding Npgsql provider. Sorry it's not immediately available as usual - preview6 actually includes some pretty big changes that introduce considerable breakage on the provider side.
@roji Is this already available in the preview8 version? (Right now I'm using SQL server but I want to switch back to PostgreSQL again as soon as possible...)
Yes, it is. Preview8 and preview9 (released today) works great.
Yes, it is. Preview8 and preview9 (released today) works great.
Thanks, I will try it. I have seen the Visual Studio update and the NetCore update already 馃憤
Yep, works for me as well. Thanks for the updates to all.
Most helpful comment
Yes, it is. Preview8 and preview9 (released today) works great.