Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用两个 IDbConnection 对象在 MySQL 主/从之间分配写入和读取时,dapper 会有什么问题吗?
一点都不。
Dapper 的身份缓存使用连接字符串作为密钥的一部分。这意味着你甚至可以让你的表在主服务器和从服务器中都“乱序排列”,而 dapper 可以很好地处理它。