新文章 网摘 文章 随笔 日记

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);

 

https://stackoverflow.com/questions/52007836/dbproviderfactories-getfactoryclasses-returns-no-results-after-installing-net-s

posted @ 2020-04-15 10:44  岭南春  阅读(906)  评论(0)    收藏  举报