.net-coremicro-orm

RepoDB throwing SqlConnection Exception


I am trying this out for the first time but it is not working. I have RepoDb nuget package installed in a Class library project but don't know where to call the RepoDb.SqlServerBootstrap.Initialize(); method. It wasn't specified in the docs. When I run it, I get the exeception

{"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)."}

Help resolve


Solution

  • Please install the RepoDb.SqlServer Nuget package as well. Once installed, you can then call the bootstrapper's Initialize() method. Here is the link to the documentation.