.NET Core???Dapper????MySQL
???????????? ???????[ 2016/6/28 10:37:37 ] ??????????????????? .NET MySQL
????.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;}
????}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11