Skip to content

Bug: System.MissingMethodException: Method not found: Void RepoDb.DbSettingMapper.Add #1038

Open
@stefandevo

Description

@stefandevo

Bug Description

Assembly that referenced more than one provider.
In my case:

<PackageReference Include="RepoDb.MySqlConnector" Version="1.1.5" />
<PackageReference Include="RepoDb.SqlServer" Version="1.1.3" />

Exception Message:

System.MissingMethodException: Method not found: 'Void RepoDb.DbSettingMapper.Add(System.Type, RepoDb.Interfaces.IDbSetting, Boolean)'.
   at RepoDb.SqlServerBootstrap.Initialize()

Upon calling the RepoDb.SqlServerBootstrap.Initialize() call it fails.
If I remove the RepoDb.MySqlConnector reference it works.

We have multiple databases we want to use; how to make this work?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwontfixThis will not be worked onworking-as-expectedThe reported issue is working as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions