I could not find an example online where they showed you how to create mappings to multiple databases (in same application) based on which Unit Of Work you are using. Seems like Dapper Extensions will accept only one global SqlDialect
.
I want to use Dapper Extensions to map to multiple databases based on which Unit Of Work I am using. So for example for a UoW for repositories User
and UserLogin
, I want to map them to MySql. For a UoW for repositories Product
and Orders
, I want to map to Postgres. Both these mappings should work in same application at same time.
I'm not sure how to go about it since the SqlDialect
property seems to be a global setting.