RepoDB 抛出 SqlConnection 异常

RepoDB throwing SqlConnection Exception

这是我第一次尝试,但没有用。我在 Class 库项目中安装了 RepoDb nuget 包,但不知道在哪里调用 RepoDb.SqlServerBootstrap.Initialize(); 方法。它没有在文档中指定。当我 运行 它时,我得到异常

{"There is no database setting mapping found for 'System.Data.SqlClient.SqlConnection'. Make sure to install the correct extension library and call the bootstrapper method. You can also visit the library's installation page (http://repodb.net/tutorials/installation)."}

帮忙解决

请同时安装 RepoDb.SqlServer Nuget 包。安装后,您可以调用引导程序的 Initialize() 方法。这是文档的 link