????.NETCore???Dapper????MySQL???????.NETCore???Dapper?????????г?.NETCoreMySQL??????????????е????????и???????.NETCoreMySQLConnector????檔Dapper????????.NETCore????檔Dapperdotnet????????????ORM??????????????????.NETCoreMySQLConnector?????????????ADO.NET?????????
??????EFCore????????MySQL???????????????Dapper????MySQL??
??????????MySQLConnector:https://github.com/SapientGuardian/mysql-connector-net-netstandard
????Dapper:https://github.com/StackExchange/dapper-dot-net
??????????

??????????.NETCore???????ó???NETCoreMySQL
???????????
???????NuGet????????
????Install-PackageSapientGuardian.MySql.Data-Pre
????Install-PackageDapper-Pre
????MySQL??????
??????MySQL?????????????????
???????????y????
CREATEDATABASE`test`
CREATETABLE`user`(
`Id`int(11)NOTNULLAUTO_INCREMENT??
`UserName`varchar(255)DEFAULTNULL??
`Url`varchar(255)DEFAULTNULL??
`Age`int(11)DEFAULTNULL??
PRIMARYKEY(`Id`)
)ENGINE=InnoDBDEFAULTCHARSET=gbk;
??????????User??
????publicclassUser
????{
????publicintId{get;set;}
????publicstringUserName{get;set;}
????publicstringUrl{get;set;}
????publicintAge{get;set;}
????}