System.ArgumentException: 'The specified invariant name 'System.Data.SqlClient' wasn't found in the list of registered .NET Data Providers.'
在.net core中,需要自己注册数据库访问程序:
DbProviderFactories.RegisterFactory("System.Data.SqlClient", SqlClientFactory.Instance);
浙公网安备 33010602011771号