Read/Write distribution over MySQL Master/Slaves using Dapper
Would dapper have any problems with using two IDbConnection objects for distribu开发者_如何学Cting Writes and Reads between MySQL Master/Slaves?
No, not at all.
Dapper's identity cache uses the connection string as part of the key. This means you could even have your tables "out-of-column-order" in both the master and slave, and dapper would cope fine with it.
精彩评论