dapper & dapper.simplecrud
TRANSCRIPT
![Page 1: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/1.jpg)
Dapper Dapper.SimpleCRUD
2016-4-1 陳奕安
![Page 2: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/2.jpg)
![Page 3: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/3.jpg)
T4 Template https://github.com/ericdc1/Dapper.SimpleCRUD/wiki/T4-Template
![Page 4: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/4.jpg)
InstallationPM> Install-Package Dapper.SimpleCRUD.ModelGenerator
![Page 5: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/5.jpg)
Dapper https://github.com/StackExchange/dapper-dot-net
![Page 6: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/6.jpg)
InstallationPM> Install-Package Dapper -Version 1.42.0
Extend IDbConnection interface Support for Stored Procedures, views and transactions. Queries caching No helpers for update / select and so on.
![Page 7: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/7.jpg)
Query
![Page 8: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/8.jpg)
Execute
![Page 9: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/9.jpg)
Insert
Select
![Page 10: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/10.jpg)
Update
Delete
![Page 11: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/11.jpg)
Batch Insert
Pass the array of objects
Pass the List
![Page 12: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/12.jpg)
Stored Procedures
![Page 13: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/13.jpg)
View
![Page 14: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/14.jpg)
Transition Suport
![Page 15: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/15.jpg)
Official sample
![Page 16: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/16.jpg)
Dapper.SimpleCRUD https://github.com/ericdc1/Dapper.SimpleCRUD
![Page 17: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/17.jpg)
InstallationPM> Install-Package Dapper.SimpleCRUD
Insert
Update
Count
![Page 18: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/18.jpg)
Model Attributes
![Page 19: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/19.jpg)
Query
![Page 20: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/20.jpg)
Delete
![Page 21: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/21.jpg)
One-To-Many mapping
![Page 22: Dapper & Dapper.SimpleCRUD](https://reader034.vdocuments.mx/reader034/viewer/2022042517/588373061a28ab22688b4cbb/html5/thumbnails/22.jpg)
QueryMultiple Dapper creator Sam Saffron http://stackoverflow.com/questions/6379155/multi-mapper-to-create-object-hierarchy#6380756 Dapper .NET Tutorial I https://liangwu.wordpress.com/2012/08/16/dapper-net-samples/ Multiple SQL http://stackoverflow.com/questions/19337468/multiple-sql-statements-in-one-roundtrip-using-dapper-net How to get values for child objects http://stackoverflow.com/questions/10235750/how-to-get-values-for-child-objects-using-dapper-orm
Associated categories http://stackoverflow.com/questions/20710453/how-to-pull-back-all-parent-child-data-in-complex-object-using-dapper-orm-in-ne Mapping Parent-Child Relationships https://gist.github.com/Lobstrosity/1133111