Dapper Dapper.SimpleCRUD
2016-4-1 陳奕安
T4 Template https://github.com/ericdc1/Dapper.SimpleCRUD/wiki/T4-Template
InstallationPM> Install-Package Dapper.SimpleCRUD.ModelGenerator
Dapper https://github.com/StackExchange/dapper-dot-net
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.
Query
Execute
Insert
Select
Update
Delete
Batch Insert
Pass the array of objects
Pass the List
Stored Procedures
View
Transition Suport
Official sample
Dapper.SimpleCRUD https://github.com/ericdc1/Dapper.SimpleCRUD
InstallationPM> Install-Package Dapper.SimpleCRUD
Insert
Update
Count
Model Attributes
Query
Delete
One-To-Many mapping
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