Does Dapper work on Mono?

c# dapper mono mysql postgresql

Question

We're thinking about moving over to Mono and I see that Dapper works with MySql. However this is with a ADO.NET provider. Does Mono/Linux have a MySql ADO.NET provider and does that work with Dapper?

Eventually we are planning on moving our current site from MySql to PostgreSql and I'm also wondering the same question, but also interms of PostrgreSql, Mono and Dapper on linux?

Accepted Answer

I'm using Dapper with the official MySqlConnector on an OpenSuse machine (+ mono) and it works great.


Popular Answer

Why not pull down the source and build it? Based on this comment from the Dapper home page:

Will dapper work with my db provider?

Dapper has no DB specific implementation details, it works across all .net ado providers including sqlite, sqlce, firebird, oracle, MySQL and SQL Server

...and Mono's ADO.NET implementation, I would think your chances are pretty good that the code will work with little or no modification.




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why