实体框架核心,Npgsql和Bulk异常

时间:2020-05-20 15:45:33

标签: postgresql .net-core npgsql

以前,一切正常,当我安装EFCore.Bulk扩展时,出现一个错误询问Microsoft.Bcl.AsyncInterfaces,安装它时,出现了一个异常:

InvalidOperationException: The database provider attempted to register an implementation of the 'IRelationalTypeMappingSource' service. This is not a service defined by EF and as such must be registered as a provider-specific service using the 'TryAddProviderSpecificServices' method.

我在此配置中使用PostgreSQL, “ Npgsql”版本=“ 4.1.3.1” “ Npgsql.EntityFrameworkCore.PostgreSQL” Version =“ 3.1.1.1”

我不知道为什么会这样吗。

0 个答案:

没有答案