(Third-party library) Harbin.DataAccess - Generic Repository Pattern using Dapper, Dapper FastCRUD and DapperQueryBuilder #161
Drizin
started this conversation in
Show and tell
Replies: 2 comments
-
This is what I have been searching for, THANK YOU! How would you use your api with a UOW pattern? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @denniscpolley , I'm glad you liked. Would you mind asking this question in Harbin issues? I'd like to keep the technical discussion there, so it can benefit other users. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Harbin.DataAccess implements Generic Repositories (Generic Repository Pattern) using "raw" Dapper, Dapper.FastCRUD, and DapperQueryBuilder.
Sample Insert/Update/Delete (Generic Repository - this uses Dapper FastCRUD):
Sample Dynamic Queries:
Extending Repositories (adding custom Queries and Commands) using Inheritance:
Full documentation here.
There are also sample scripts which extract the schema of an existing SQL Server database and generate POCO classes (with attributes
[Key]
,[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
, etc.) based on the schema.Beta Was this translation helpful? Give feedback.
All reactions