zzzprojects/Dapper-Plus
zzzprojects/Dapper-Plus has 427 GitHub stars and 86 forks. Star changes are not measured yet. Last checked 2026-11-09 05:07 UTC. Last push 2026-10-12.
Dapper Plus - High-Efficient Bulk Actions (Insert, Update, Delete, and Merge) for .NET
측정된 스타 증가
- in 24h
- 기록 수집 중
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWhat's Dapper Plus?
Like Dapper, Dapper Plus is a NuGet library where you can add to your project that will extend your IDbConnection and IDbTransaction interface with high efficient Bulk Actions Helpers (Insert, Update, Delete, and Merge).
It can be used with or without Dapper, and it's compatible with all other Dapper packages.
Example
// @nuget: Z.Dapper.Plus
using Z.Dapper.Plus;
// CONFIGURE & MAP entity
DapperPlusManager.Entity<Order>().Table("Orders").Identity(x => x.ID);
// CHAIN & SAVE entity
connection.BulkInsert(orders)
.AlsoInsert(order => order.Items);
.Include(order => order.ThenMerge(order => order.Invoice)
.AlsoMerge(invoice => invoice.Items))
.AlsoMerge(order => order.ShippingAddress);
Download
PM> Install-Package Z.Dapper.Plus
* PRO Version unlocked for the current month
Wiki
- Bulk Actions
- Also Bulk Actions
- Then Bulk Actions
- Include Actions
- Transaction
Dapper Plus - Mapper
Mapper
Dapper Plus Mapper allows to map the conceptual model (Entity) with the storage model (Database) and configure options to perform Bulk Actions.
// @nuget: Z.Dapper.Plus
using Z.Dapper.Plus;
DapperPlusManager.Entity<Order>().Table("Orders")
.Identity(x => x.ID)
.BatchSize(200);
Bulk Actions
Bulk Actions allow to perform a bulk insert, update, delete or merge and include related child items.
// @nuget: Z.Dapper.Plus
using Z.Dapper.Plus;
connection.BulkInsert(orders, order => order.Items)
.BulkInsert(invoices, invoice => invoice.Items)
.BulkMerge(shippingAddresses);
Also Bulk Actions
Also Bulk Actions allow to perform bulk action with a lambda expression using entities from the last Bulk[Action] or ThenBulk[Action] used.
// @nuget: Z.Dapper.Plus
using Z.Dapper.Plus;
connection.BulkInsert(orders)
.AlsoInsert(order => order.Items)
.AlsoInsert(order => order.Invoice)
.AlsoInsert(order => order.Invoice.Items);
Then Bulk Actions
Then Bulk Actions is similar to Also Bulk Actions but modifies entities used for the next bulk action using a lambda expression.
// @nuget: Z.Dapper.Plus
using Z.Dapper.Plus;
connection.BulkInsert(orders)
.AlsoInsert(order => order.Items)
.ThenInsert(order => order.Invoice)
.ThenInsert(invoice => invoice.Items);
Include Actions
The Dapper Plus Include method allows resolving issues with multiple "ThenBulk[Action]" methods.
// @nuget: Z.Dapper.Plus
using Z.Dapper.Plus;
connection.BulkInsert(orders)
.Include(x => x.ThenInsert(order => order.Items)
.ThenInsert(orderItem => orderItem.Metas))
.Include(x => x.ThenInsert(order => order.Invoice)
.ThenInsert(Invoice => invoice.Items));
Transaction
All Dapper Plus extension methods are also available on the IDbTransaction interface
// @nuget: Z.Dapper.Plus
using Z.Dapper.Plus;
transaction.BulkInsert(orders)
.Include(x => x.ThenInsert(order => order.Items)
.ThenInsert(orderItem => orderItem.Metas))
.Include(x => x.ThenInsert(order => order.Invoice)
.ThenInsert(Invoice => invoice.Items));
DB Provider Supported
All major database providers are supported or under development.
- SQL Server 2008+
- SQL Azure
- SQL Compact
- SQLite
- MySQL
- PostgreSQL
- Oracle
PRO
PRO Version unlocked for the current month
| Features | PRO Version |
|---|---|
| Bulk Insert | Yes |
| Bulk Update | Yes |
| Bulk Delete | Yes |
| Bulk Merge | Yes |
| Bulk Action Async | Yes |
| Bulk Also Action | Yes |
| Bulk Then Action | Yes |
| Commercial License | Yes |
| Royalty-Free | Yes |
| Support & Upgrades (1 year) | Yes |
Learn more about the PRO Version.
Contribute
The best way to contribute is by spreading the word about the library:
- Blog it
- Comment it
- Star it
- Share it
A HUGE THANKS for your help.
More Projects
- Projects:
- Learn Websites
- Online Tools:
- and much more!
To view all our free and paid projects, visit our website ZZZ Projects.
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,423 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,763 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,309 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,453 스타