dotnetcore / CAP

Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
http://cap.dotnetcore.xyz
MIT License
6.61k stars 1.28k forks source link

How to Introduce Multiple Database Providers? #1531

Closed syp10000 closed 4 months ago

syp10000 commented 4 months ago

image 项目同时引用了这三个库 image 由于命名空间和参数一致问题,无法这么使用,不知道如何处理

yang-xiaodong commented 4 months ago

虽然我认为你不应该这样做,但我无权干涉你。

BeginTransactionAsync 只是一个扩展方法你可以自行编写。

https://github.com/dotnetcore/CAP/blob/18ffd1885a03e8d41ab9bdde0e0f6a97e013d440/src/DotNetCore.CAP.SqlServer/ICapTransaction.SqlServer.cs#L166-L174