Accessing Mysql using dapper

asp.net c# dapper mysql

Question

I am new to .NET. I am interested in using the Dapper micro-ORM to access a MySQL backend from an ASP .NET application.

Can this be done? What do I need to know to get started?

Popular Answer

Dapper is pretty much DB agnostic and can be used with any backend. All you need to do is providing a valid and open MySQL .NET connection.

Quoting the site:

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

And here's the link to the complete test suite for dapper with a lot of useful examples: https://github.com/StackExchange/Dapper/blob/master/Dapper.Tests.

There is even a link to some MySQL-specific tests here: https://github.com/StackExchange/Dapper/blob/master/Dapper.Tests/Providers/MySQLTests.cs




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